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

Unified Diff: chrome/browser/signin/fake_signin_manager.cc

Issue 14630003: signin: move SigninManagerBase::Signout to SigninManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: apocalypse 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/signin/fake_signin_manager.h ('k') | chrome/browser/signin/signin_global_error_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/fake_signin_manager.cc
diff --git a/chrome/browser/signin/fake_signin_manager.cc b/chrome/browser/signin/fake_signin_manager.cc
index 3d7f744e96e15566e1d7f45b51b7b3327945be13..5fcececb042546db2fef89465dc14f0644e65c2d 100644
--- a/chrome/browser/signin/fake_signin_manager.cc
+++ b/chrome/browser/signin/fake_signin_manager.cc
@@ -15,36 +15,19 @@
#include "chrome/common/pref_names.h"
#include "content/public/browser/notification_service.h"
-FakeSigninManagerBase::FakeSigninManagerBase(Profile* profile) {
- profile_ = profile;
- signin_global_error_.reset(new SigninGlobalError(this, profile));
- GlobalErrorServiceFactory::GetForProfile(profile_)->AddGlobalError(
- signin_global_error_.get());
- signin_allowed_.Init(prefs::kSigninAllowed, profile_->GetPrefs(),
- base::Bind(&SigninManagerBase::OnSigninAllowedPrefChanged,
- base::Unretained(this)));
+FakeSigninManagerBase::FakeSigninManagerBase() {
}
FakeSigninManagerBase::~FakeSigninManagerBase() {
- if (signin_global_error_.get()) {
- GlobalErrorServiceFactory::GetForProfile(profile_)->RemoveGlobalError(
- signin_global_error_.get());
- signin_global_error_.reset();
- }
}
-void FakeSigninManagerBase::SignOut() {
- authenticated_username_.clear();
- content::NotificationService::current()->Notify(
- chrome::NOTIFICATION_GOOGLE_SIGNED_OUT,
- content::Source<Profile>(profile_),
- content::NotificationService::NoDetails());
+void FakeSigninManagerBase::InitTokenService() {
}
// static
ProfileKeyedService* FakeSigninManagerBase::Build(
content::BrowserContext* profile) {
- return new FakeSigninManagerBase(static_cast<Profile*>(profile));
+ return new FakeSigninManagerBase();
}
#if !defined (OS_CHROMEOS)
@@ -52,7 +35,6 @@ ProfileKeyedService* FakeSigninManagerBase::Build(
FakeSigninManager::FakeSigninManager(Profile* profile)
: SigninManager(scoped_ptr<SigninManagerDelegate>(
new ChromeSigninManagerDelegate(profile))) {
- Initialize(profile);
}
FakeSigninManager::~FakeSigninManager() {
« no previous file with comments | « chrome/browser/signin/fake_signin_manager.h ('k') | chrome/browser/signin/signin_global_error_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698