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

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

Issue 10693022: Add support for loading user cloud policy on desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed redundant #ifdef OS_CHROMEOS guard Created 8 years, 4 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
Index: chrome/browser/signin/signin_manager_fake.cc
diff --git a/chrome/browser/signin/signin_manager_fake.cc b/chrome/browser/signin/signin_manager_fake.cc
index 4cd8eccf0cb5b3fd57dd48ecd0d447103045cc90..b3068ea71da2713acab518c0eb0518b06cd7bcf6 100644
--- a/chrome/browser/signin/signin_manager_fake.cc
+++ b/chrome/browser/signin/signin_manager_fake.cc
@@ -4,7 +4,12 @@
#include "chrome/browser/signin/signin_manager_fake.h"
-FakeSigninManager::FakeSigninManager() {}
+#include "chrome/common/chrome_notification_types.h"
+#include "content/public/browser/notification_service.h"
+
+FakeSigninManager::FakeSigninManager(Profile* profile) {
+ profile_ = profile;
+}
FakeSigninManager::~FakeSigninManager() {}
@@ -29,9 +34,13 @@ void FakeSigninManager::StartSignInWithOAuth(const std::string& username,
void FakeSigninManager::SignOut() {
authenticated_username_.clear();
+ content::NotificationService::current()->Notify(
+ chrome::NOTIFICATION_GOOGLE_SIGNED_OUT,
+ content::Source<Profile>(profile_),
+ content::NotificationService::NoDetails());
}
// static
ProfileKeyedService* FakeSigninManager::Build(Profile* profile) {
- return new FakeSigninManager();
+ return new FakeSigninManager(profile);
}

Powered by Google App Engine
This is Rietveld 408576698