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

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

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & style Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_signin_manager.h" 5 #include "chrome/browser/signin/fake_signin_manager.h"
6 6
7 #include "base/callback_helpers.h" 7 #include "base/callback_helpers.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/signin/chrome_signin_manager_delegate.h" 10 #include "chrome/browser/signin/chrome_signin_manager_delegate.h"
11 #include "chrome/browser/signin/signin_global_error.h" 11 #include "chrome/browser/signin/signin_global_error.h"
12 #include "chrome/browser/ui/global_error/global_error_service.h" 12 #include "chrome/browser/ui/global_error/global_error_service.h"
13 #include "chrome/browser/ui/global_error/global_error_service_factory.h" 13 #include "chrome/browser/ui/global_error/global_error_service_factory.h"
14 #include "chrome/common/chrome_notification_types.h" 14 #include "chrome/common/chrome_notification_types.h"
15 #include "chrome/common/pref_names.h" 15 #include "chrome/common/pref_names.h"
16 #include "content/public/browser/notification_service.h" 16 #include "content/public/browser/notification_service.h"
17 17
18 FakeSigninManagerBase::FakeSigninManagerBase() { 18 FakeSigninManagerBase::FakeSigninManagerBase() {
19 } 19 }
20 20
21 FakeSigninManagerBase::~FakeSigninManagerBase() { 21 FakeSigninManagerBase::~FakeSigninManagerBase() {
22 } 22 }
23 23
24 void FakeSigninManagerBase::InitTokenService() { 24 void FakeSigninManagerBase::InitTokenService() {
25 } 25 }
26 26
27 // static 27 // static
28 ProfileKeyedService* FakeSigninManagerBase::Build( 28 BrowserContextKeyedService* FakeSigninManagerBase::Build(
29 content::BrowserContext* profile) { 29 content::BrowserContext* profile) {
30 return new FakeSigninManagerBase(); 30 return new FakeSigninManagerBase();
31 } 31 }
32 32
33 #if !defined (OS_CHROMEOS) 33 #if !defined (OS_CHROMEOS)
34 34
35 FakeSigninManager::FakeSigninManager(Profile* profile) 35 FakeSigninManager::FakeSigninManager(Profile* profile)
36 : SigninManager(scoped_ptr<SigninManagerDelegate>( 36 : SigninManager(scoped_ptr<SigninManagerDelegate>(
37 new ChromeSigninManagerDelegate(profile))) { 37 new ChromeSigninManagerDelegate(profile))) {
38 } 38 }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 return; 70 return;
71 set_auth_in_progress(std::string()); 71 set_auth_in_progress(std::string());
72 authenticated_username_.clear(); 72 authenticated_username_.clear();
73 content::NotificationService::current()->Notify( 73 content::NotificationService::current()->Notify(
74 chrome::NOTIFICATION_GOOGLE_SIGNED_OUT, 74 chrome::NOTIFICATION_GOOGLE_SIGNED_OUT,
75 content::Source<Profile>(profile_), 75 content::Source<Profile>(profile_),
76 content::NotificationService::NoDetails()); 76 content::NotificationService::NoDetails());
77 } 77 }
78 78
79 // static 79 // static
80 ProfileKeyedService* FakeSigninManager::Build( 80 BrowserContextKeyedService* FakeSigninManager::Build(
81 content::BrowserContext* profile) { 81 content::BrowserContext* profile) {
82 return new FakeSigninManager(static_cast<Profile*>(profile)); 82 return new FakeSigninManager(static_cast<Profile*>(profile));
83 } 83 }
84 84
85 #endif // !defined (OS_CHROMEOS) 85 #endif // !defined (OS_CHROMEOS)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698