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

Side by Side Diff: chrome/browser/signin/fake_profile_oauth2_token_service_builder.cc

Issue 1245103005: Componentize more signin code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chrome/browser/signin/fake_profile_oauth2_token_service_builder.h" 5 #include "chrome/browser/signin/fake_profile_oauth2_token_service_builder.h"
6 6
7 #include "chrome/browser/signin/fake_profile_oauth2_token_service.h" 7 #include "components/signin/core/browser/fake_profile_oauth2_token_service.h"
8 8
9 // TODO(blundell): Should these be namespaced? 9 // TODO(blundell): Should these be namespaced?
10 scoped_ptr<KeyedService> BuildFakeProfileOAuth2TokenService( 10 scoped_ptr<KeyedService> BuildFakeProfileOAuth2TokenService(
11 content::BrowserContext* context) { 11 content::BrowserContext* context) {
12 scoped_ptr<FakeProfileOAuth2TokenService> service( 12 scoped_ptr<FakeProfileOAuth2TokenService> service(
13 new FakeProfileOAuth2TokenService()); 13 new FakeProfileOAuth2TokenService());
14 return service.Pass(); 14 return service.Pass();
15 } 15 }
16 16
17 scoped_ptr<KeyedService> BuildAutoIssuingFakeProfileOAuth2TokenService( 17 scoped_ptr<KeyedService> BuildAutoIssuingFakeProfileOAuth2TokenService(
18 content::BrowserContext* context) { 18 content::BrowserContext* context) {
19 scoped_ptr<FakeProfileOAuth2TokenService> service( 19 scoped_ptr<FakeProfileOAuth2TokenService> service(
20 new FakeProfileOAuth2TokenService()); 20 new FakeProfileOAuth2TokenService());
21 service->set_auto_post_fetch_response_on_message_loop(true); 21 service->set_auto_post_fetch_response_on_message_loop(true);
22 return service.Pass(); 22 return service.Pass();
23 } 23 }
OLDNEW
« no previous file with comments | « chrome/browser/signin/fake_profile_oauth2_token_service.cc ('k') | chrome/browser/signin/signin_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698