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

Unified Diff: chrome/browser/supervised_user/supervised_user_service.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/supervised_user/supervised_user_service.cc
diff --git a/chrome/browser/supervised_user/supervised_user_service.cc b/chrome/browser/supervised_user/supervised_user_service.cc
index 324f525d62632145ea2ce299f1691c02c2797820..befacfaa44e0158e8b753c04c347856b7387a1a8 100644
--- a/chrome/browser/supervised_user/supervised_user_service.cc
+++ b/chrome/browser/supervised_user/supervised_user_service.cc
@@ -1257,7 +1257,7 @@ syncer::ModelTypeSet SupervisedUserService::GetPreferredDataTypes() const {
}
#if !defined(OS_ANDROID)
-void SupervisedUserService::OnStateChanged() {
+void SupervisedUserService::OnStateChanged(syncer::SyncService* sync) {
browser_sync::ProfileSyncService* service =
skym 2017/01/26 23:43:23 This variable can be replaced by |sync|.
Steven Holte 2017/01/27 02:27:19 Done.
ProfileSyncServiceFactory::GetForProfile(profile_);
if (waiting_for_sync_initialization_ && service->IsEngineInitialized()) {

Powered by Google App Engine
This is Rietveld 408576698