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

Unified Diff: chrome/browser/chromeos/drive/drive_sync_client.cc

Issue 11345008: Remove content::NotificationObserver dependency from most Prefs code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/drive/drive_sync_client.cc
diff --git a/chrome/browser/chromeos/drive/drive_sync_client.cc b/chrome/browser/chromeos/drive/drive_sync_client.cc
index f5273b3e74743f92344160add1e48aff4a1bdc1b..a303cb7fd111d28514f1ceafb3dc9a589f73041c 100644
--- a/chrome/browser/chromeos/drive/drive_sync_client.cc
+++ b/chrome/browser/chromeos/drive/drive_sync_client.cc
@@ -431,9 +431,8 @@ void DriveSyncClient::OnUploadFileComplete(const std::string& resource_id,
DoSyncLoop();
}
-void DriveSyncClient::Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) {
+void DriveSyncClient::OnPreferenceChanged(PrefServiceBase* service,
+ const std::string& pref_name) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
// Resume the sync loop if gdata preferences are changed. Note that we

Powered by Google App Engine
This is Rietveld 408576698