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

Unified Diff: chrome/browser/chromeos/drive/drive_file_system.h

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_file_system.h
diff --git a/chrome/browser/chromeos/drive/drive_file_system.h b/chrome/browser/chromeos/drive/drive_file_system.h
index 46ef470ca7fc0a93b8c9d6bd630c0e4c14b397c4..5a2f99a17ac866f8dabcc315f5f321c1a1ae5128 100644
--- a/chrome/browser/chromeos/drive/drive_file_system.h
+++ b/chrome/browser/chromeos/drive/drive_file_system.h
@@ -11,6 +11,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/observer_list.h"
+#include "base/prefs/public/pref_observer.h"
#include "base/timer.h"
#include "chrome/browser/chromeos/drive/drive_cache.h"
#include "chrome/browser/chromeos/drive/drive_feed_loader_observer.h"
@@ -18,7 +19,6 @@
#include "chrome/browser/chromeos/drive/file_system/drive_operations.h"
#include "chrome/browser/chromeos/drive/file_system/operation_observer.h"
#include "chrome/browser/google_apis/gdata_errorcode.h"
-#include "content/public/browser/notification_observer.h"
class PrefChangeRegistrar;
@@ -53,7 +53,7 @@ class RemoveOperation;
class DriveFileSystem : public DriveFileSystemInterface,
public DriveFeedLoaderObserver,
public file_system::OperationObserver,
- public content::NotificationObserver {
+ public PrefObserver {
public:
DriveFileSystem(Profile* profile,
DriveCache* cache,
@@ -143,10 +143,9 @@ class DriveFileSystem : public DriveFileSystemInterface,
virtual DriveFileSystemMetadata GetMetadata() const OVERRIDE;
virtual void Reload() OVERRIDE;
- // content::NotificationObserver implementation.
- virtual void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE;
+ // PrefObserver implementation.
+ virtual void OnPreferenceChanged(PrefServiceBase* service,
+ const std::string& pref_name) OVERRIDE;
// file_system::OperationObserver overrides.
virtual void OnDirectoryChangedByOperation(

Powered by Google App Engine
This is Rietveld 408576698