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

Unified Diff: chrome/browser/chromeos/login/signin/auth_sync_observer.cc

Issue 2657673004: Add shutdown notification and service refs to SyncServiceObserver. (Closed)
Patch Set: Add SyncService* to OnStateChanged Created 3 years, 11 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/chromeos/login/signin/auth_sync_observer.cc
diff --git a/chrome/browser/chromeos/login/signin/auth_sync_observer.cc b/chrome/browser/chromeos/login/signin/auth_sync_observer.cc
index f95b305cd491e5213c76559350fef29eb8dccbcb..8313c79555286443c32b877681dad97f6e4281d4 100644
--- a/chrome/browser/chromeos/login/signin/auth_sync_observer.cc
+++ b/chrome/browser/chromeos/login/signin/auth_sync_observer.cc
@@ -47,7 +47,7 @@ void AuthSyncObserver::Shutdown() {
sync_service->RemoveObserver(this);
}
-void AuthSyncObserver::OnStateChanged() {
+void AuthSyncObserver::OnStateChanged(syncer::SyncService* sync) {
DCHECK(user_manager::UserManager::Get()->IsLoggedInAsUserWithGaiaAccount() ||
user_manager::UserManager::Get()->IsLoggedInAsSupervisedUser());
browser_sync::ProfileSyncService* sync_service =
skym 2017/01/26 23:43:22 This variable can be replaced by |sync|.
Steven Holte 2017/01/27 02:27:19 Done.

Powered by Google App Engine
This is Rietveld 408576698