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

Unified Diff: chrome/browser/sync_file_system/sync_file_system_service.cc

Issue 2657673004: Add shutdown notification and service refs to SyncServiceObserver. (Closed)
Patch Set: Chromeos fix 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/sync_file_system/sync_file_system_service.cc
diff --git a/chrome/browser/sync_file_system/sync_file_system_service.cc b/chrome/browser/sync_file_system/sync_file_system_service.cc
index d9666744e376f6e72aa20c55ad2a0a83f8bdb7b0..2ea9673d28e4912d54e9098ddcd36057e8054ccf 100644
--- a/chrome/browser/sync_file_system/sync_file_system_service.cc
+++ b/chrome/browser/sync_file_system/sync_file_system_service.cc
@@ -728,11 +728,8 @@ void SyncFileSystemService::OnExtensionLoaded(
local_service_->SetOriginEnabled(app_origin, true);
}
-void SyncFileSystemService::OnStateChanged() {
- syncer::SyncService* profile_sync_service =
- ProfileSyncServiceFactory::GetSyncServiceForBrowserContext(profile_);
- if (profile_sync_service)
- UpdateSyncEnabledStatus(profile_sync_service);
+void SyncFileSystemService::OnStateChanged(syncer::SyncService* sync) {
+ UpdateSyncEnabledStatus(sync);
}
void SyncFileSystemService::OnFileStatusChanged(
« no previous file with comments | « chrome/browser/sync_file_system/sync_file_system_service.h ('k') | chrome/browser/ui/ash/app_sync_ui_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698