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"
12 #include "components/signin/core/browser/child_account_info_fetcher_impl.h"
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
,
27 return new ChildAccountInfoFetcherImpl(account_id
, fetcher_service
,
28 token_service
, request_context_getter
,
29 invalidation_service
);
33 ChildAccountInfoFetcher::~ChildAccountInfoFetcher() {