Index: chrome/browser/safe_browsing/safe_browsing_service.h |
diff --git a/chrome/browser/safe_browsing/safe_browsing_service.h b/chrome/browser/safe_browsing/safe_browsing_service.h |
index 4d2801e3e66b6131ae84a17f320d37041930bb2a..b28831e2d8892c45e78925cf76359d9adc5fc81e 100644 |
--- a/chrome/browser/safe_browsing/safe_browsing_service.h |
+++ b/chrome/browser/safe_browsing/safe_browsing_service.h |
@@ -20,6 +20,7 @@ |
#include "base/memory/ref_counted.h" |
#include "base/memory/scoped_ptr.h" |
#include "base/observer_list.h" |
+#include "base/prefs/public/pref_observer.h" |
#include "base/sequenced_task_runner_helpers.h" |
#include "base/synchronization/lock.h" |
#include "base/time.h" |
@@ -55,7 +56,8 @@ class DownloadProtectionService; |
class SafeBrowsingService |
: public base::RefCountedThreadSafe< |
SafeBrowsingService, content::BrowserThread::DeleteOnUIThread>, |
- public content::NotificationObserver { |
+ public content::NotificationObserver, |
+ public PrefObserver { |
public: |
class Client; |
// Users of this service implement this interface to be notified |
@@ -484,6 +486,10 @@ class SafeBrowsingService |
const content::NotificationSource& source, |
const content::NotificationDetails& details) OVERRIDE; |
+ // PrefObserver override |
+ virtual void OnPreferenceChanged(PrefServiceBase* service, |
+ const std::string& pref_name) OVERRIDE; |
+ |
// Starts following the safe browsing preference on |pref_service|. |
void AddPrefService(PrefService* pref_service); |