Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Side by Side Diff: ios/chrome/browser/signin/fake_oauth2_token_service_builder.cc

Issue 1667733002: Move chrome_browser_state.{cc,h} to ios/chrome/browser/browser_state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@test_support_ios
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ios/chrome/browser/signin/fake_oauth2_token_service_builder.h" 5 #include "ios/chrome/browser/signin/fake_oauth2_token_service_builder.h"
6 6
7 #include "components/signin/core/browser/fake_profile_oauth2_token_service.h" 7 #include "components/signin/core/browser/fake_profile_oauth2_token_service.h"
8 #include "components/signin/ios/browser/fake_profile_oauth2_token_service_ios_de legate.h" 8 #include "components/signin/ios/browser/fake_profile_oauth2_token_service_ios_de legate.h"
9 #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
9 #include "ios/chrome/browser/signin/account_tracker_service_factory.h" 10 #include "ios/chrome/browser/signin/account_tracker_service_factory.h"
10 #include "ios/chrome/browser/signin/signin_client_factory.h" 11 #include "ios/chrome/browser/signin/signin_client_factory.h"
11 #include "ios/chrome/browser/signin/signin_error_controller_factory.h" 12 #include "ios/chrome/browser/signin/signin_error_controller_factory.h"
12 #include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state. h"
13 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" 13 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h"
14 14
15 scoped_ptr<KeyedService> BuildFakeOAuth2TokenService( 15 scoped_ptr<KeyedService> BuildFakeOAuth2TokenService(
16 web::BrowserState* context) { 16 web::BrowserState* context) {
17 ios::ChromeBrowserState* browser_state = 17 ios::ChromeBrowserState* browser_state =
18 ios::ChromeBrowserState::FromBrowserState(context); 18 ios::ChromeBrowserState::FromBrowserState(context);
19 OAuth2TokenServiceDelegate* delegate = 19 OAuth2TokenServiceDelegate* delegate =
20 new FakeProfileOAuth2TokenServiceIOSDelegate( 20 new FakeProfileOAuth2TokenServiceIOSDelegate(
21 SigninClientFactory::GetForBrowserState(browser_state), 21 SigninClientFactory::GetForBrowserState(browser_state),
22 ios::GetChromeBrowserProvider() 22 ios::GetChromeBrowserProvider()
23 ->GetProfileOAuth2TokenServiceIOSProvider(), 23 ->GetProfileOAuth2TokenServiceIOSProvider(),
24 ios::AccountTrackerServiceFactory::GetForBrowserState(browser_state), 24 ios::AccountTrackerServiceFactory::GetForBrowserState(browser_state),
25 ios::SigninErrorControllerFactory::GetForBrowserState(browser_state)); 25 ios::SigninErrorControllerFactory::GetForBrowserState(browser_state));
26 return make_scoped_ptr(new FakeProfileOAuth2TokenService(delegate)); 26 return make_scoped_ptr(new FakeProfileOAuth2TokenService(delegate));
27 } 27 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/signin/browser_state_data_remover.mm ('k') | ios/chrome/browser/signin/fake_signin_manager_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698