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

Unified Diff: chrome/browser/services/gcm/gcm_profile_service_unittest.cc

Issue 137553007: User cloud policy token forwarder: Replace PO2TS::GetPrimaryAccountId() with SMB::GetAuthenticatedAc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments Created 6 years, 10 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/services/gcm/gcm_profile_service_unittest.cc
diff --git a/chrome/browser/services/gcm/gcm_profile_service_unittest.cc b/chrome/browser/services/gcm/gcm_profile_service_unittest.cc
index cb9c7df424450311dd21d2893c6c353730b2bc47..d5aeb4f419b734a92015db86d1a9a4f32dbaaaad 100644
--- a/chrome/browser/services/gcm/gcm_profile_service_unittest.cc
+++ b/chrome/browser/services/gcm/gcm_profile_service_unittest.cc
@@ -138,9 +138,11 @@ class FakeSigninManager : public SigninManagerBase {
}
void SignOut() {
+ std::string username = GetAuthenticatedUsername();
clear_authenticated_username();
+ profile()->GetPrefs()->ClearPref(prefs::kGoogleServicesUsername);
- GoogleServiceSignoutDetails details(GetAuthenticatedUsername());
+ GoogleServiceSignoutDetails details(username);
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_GOOGLE_SIGNED_OUT,
content::Source<Profile>(profile_),
« no previous file with comments | « chrome/browser/chromeos/policy/user_cloud_policy_token_forwarder_factory.cc ('k') | chrome/browser/signin/signin_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698