| Index: chrome/browser/protector/protector_service.cc
|
| diff --git a/chrome/browser/protector/protector_service.cc b/chrome/browser/protector/protector_service.cc
|
| index 93e353d3f37c7bcfae46aa3c4a8af4acae17cfbf..b35c294130a5bbcfdedbdc884a816a85c6c2f508 100644
|
| --- a/chrome/browser/protector/protector_service.cc
|
| +++ b/chrome/browser/protector/protector_service.cc
|
| @@ -10,6 +10,7 @@
|
| #include "chrome/browser/prefs/pref_service.h"
|
| #include "chrome/browser/protector/settings_change_global_error.h"
|
| #include "chrome/browser/protector/keys.h"
|
| +#include "chrome/browser/protector/protected_prefs_watcher.h"
|
| #include "chrome/browser/ui/browser.h"
|
| #include "chrome/common/chrome_notification_types.h"
|
| #include "chrome/common/chrome_switches.h"
|
| @@ -22,6 +23,8 @@ namespace protector {
|
| ProtectorService::ProtectorService(Profile* profile)
|
| : profile_(profile),
|
| has_active_change_(false) {
|
| + // Start observing pref changes.
|
| + prefs_watcher_.reset(new ProtectedPrefsWatcher(profile));
|
| }
|
|
|
| ProtectorService::~ProtectorService() {
|
| @@ -74,6 +77,10 @@ void ProtectorService::OpenTab(const GURL& url, Browser* browser) {
|
| browser->ShowSingletonTab(url);
|
| }
|
|
|
| +ProtectedPrefsWatcher* ProtectorService::GetPrefsWatcher() {
|
| + return prefs_watcher_.get();
|
| +}
|
| +
|
| void ProtectorService::Shutdown() {
|
| while (IsShowingChange())
|
| items_[0].error->RemoveFromProfile();
|
|
|