Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / components / signin / core / browser / child_account_info_fetcher.cc
blob3ee32037c030b2f7b8fb8e73573117ff94b73bd0
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "components/signin/core/browser/child_account_info_fetcher.h"
7 #include "build/build_config.h"
9 #if defined(OS_ANDROID)
10 #include "components/signin/core/browser/child_account_info_fetcher_android.h"
11 #else
12 #include "components/signin/core/browser/child_account_info_fetcher_impl.h"
13 #endif
15 // static
16 ChildAccountInfoFetcher* ChildAccountInfoFetcher::CreateFrom(
17 const std::string& account_id,
18 AccountFetcherService* fetcher_service,
19 OAuth2TokenService* token_service,
20 net::URLRequestContextGetter* request_context_getter,
21 invalidation::InvalidationService* invalidation_service) {
22 #if defined(OS_ANDROID)
23 ChildAccountInfoFetcherAndroid::StartFetchingChildAccountInfo(fetcher_service,
24 account_id);
25 return nullptr;
26 #else
27 return new ChildAccountInfoFetcherImpl(account_id, fetcher_service,
28 token_service, request_context_getter,
29 invalidation_service);
30 #endif
33 ChildAccountInfoFetcher::~ChildAccountInfoFetcher() {