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

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

Issue 10823212: Relanding this as this did not fix the chromiumos breakage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « chrome/browser/signin/signin_manager_fake.h ('k') | chrome/browser/sync/profile_sync_service_mock.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/signin_manager_fake.cc
===================================================================
--- chrome/browser/signin/signin_manager_fake.cc (revision 150400)
+++ chrome/browser/signin/signin_manager_fake.cc (working copy)
@@ -4,8 +4,13 @@
#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() {}
void FakeSigninManager::StartSignIn(const std::string& username,
@@ -29,9 +34,13 @@
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);
}
Property changes on: chrome\browser\signin\signin_manager_fake.cc
___________________________________________________________________
Added: svn:mergeinfo
« no previous file with comments | « chrome/browser/signin/signin_manager_fake.h ('k') | chrome/browser/sync/profile_sync_service_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698