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

Unified Diff: chrome/browser/protector/base_prefs_change.h

Issue 11493003: Remove the protector service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix implicit ExtensionSystem -> TemplateURLService dependency Created 8 years 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
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/protector/base_prefs_change.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/protector/base_prefs_change.h
diff --git a/chrome/browser/protector/base_prefs_change.h b/chrome/browser/protector/base_prefs_change.h
deleted file mode 100644
index 046b83a0fb24d0d5b2d36a7dd6c4925cf565202a..0000000000000000000000000000000000000000
--- a/chrome/browser/protector/base_prefs_change.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_PROTECTOR_BASE_PREFS_CHANGE_H_
-#define CHROME_BROWSER_PROTECTOR_BASE_PREFS_CHANGE_H_
-
-#include <string>
-
-#include "base/memory/scoped_ptr.h"
-#include "base/prefs/public/pref_change_registrar.h"
-#include "chrome/browser/protector/base_setting_change.h"
-
-namespace protector {
-
-// BaseSettingChange subclass for PrefService-managed settings changes.
-class BasePrefsChange : public BaseSettingChange {
- public:
- BasePrefsChange();
- virtual ~BasePrefsChange();
-
- // BaseSettingChange overrides:
- virtual bool Init(Profile* profile) OVERRIDE;
- virtual void InitWhenDisabled(Profile* profile) OVERRIDE;
-
- protected:
- // Marks |this| to be dismissed when |pref_name| is changed. Should only be
- // called after Init.
- void DismissOnPrefChange(const std::string& pref_name);
-
- // Ignores any further changes to prefs. No further DismissOnPrefChange calls
- // can be made.
- void IgnorePrefChanges();
-
- private:
- void OnPreferenceChanged(const std::string& pref_name);
-
- PrefChangeRegistrar pref_observer_;
-
- DISALLOW_COPY_AND_ASSIGN(BasePrefsChange);
-};
-
-} // namespace protector
-
-#endif // CHROME_BROWSER_PROTECTOR_BASE_PREFS_CHANGE_H_
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/protector/base_prefs_change.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698