summaryrefslogtreecommitdiffstats
path: root/chrome/browser/prefs/browser_ui_prefs_migrator_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/prefs/browser_ui_prefs_migrator_unittest.cc')
-rw-r--r--chrome/browser/prefs/browser_ui_prefs_migrator_unittest.cc22
1 files changed, 10 insertions, 12 deletions
diff --git a/chrome/browser/prefs/browser_ui_prefs_migrator_unittest.cc b/chrome/browser/prefs/browser_ui_prefs_migrator_unittest.cc
index 811235a..575fcea 100644
--- a/chrome/browser/prefs/browser_ui_prefs_migrator_unittest.cc
+++ b/chrome/browser/prefs/browser_ui_prefs_migrator_unittest.cc
@@ -17,40 +17,38 @@ class DictionaryPrefStore : public WriteablePrefStore {
DictionaryPrefStore() : WriteablePrefStore() {}
// Overrides from PrefStore.
- virtual void AddObserver(Observer* observer) override {
+ void AddObserver(Observer* observer) override {
observers_.AddObserver(observer);
}
- virtual void RemoveObserver(Observer* observer) override {
+ void RemoveObserver(Observer* observer) override {
observers_.RemoveObserver(observer);
}
- virtual bool GetValue(const std::string& key,
- const base::Value** result) const override {
+ bool GetValue(const std::string& key,
+ const base::Value** result) const override {
return prefs_.Get(key, result);
}
// Overrides from WriteablePrefStore.
- virtual void SetValue(const std::string& key, base::Value* value) override {
+ void SetValue(const std::string& key, base::Value* value) override {
DCHECK(value);
prefs_.Set(key, value);
ReportValueChanged(key);
}
- virtual void RemoveValue(const std::string& key) override {
+ void RemoveValue(const std::string& key) override {
if (prefs_.RemovePath(key, NULL))
ReportValueChanged(key);
}
- virtual bool GetMutableValue(const std::string& key,
- base::Value** result) override {
+ bool GetMutableValue(const std::string& key, base::Value** result) override {
return prefs_.Get(key, result);
}
- virtual void ReportValueChanged(const std::string& key) override {}
+ void ReportValueChanged(const std::string& key) override {}
- virtual void SetValueSilently(const std::string& key,
- base::Value* value) override {
+ void SetValueSilently(const std::string& key, base::Value* value) override {
NOTIMPLEMENTED();
}
@@ -60,7 +58,7 @@ class DictionaryPrefStore : public WriteablePrefStore {
}
private:
- virtual ~DictionaryPrefStore() {}
+ ~DictionaryPrefStore() override {}
base::DictionaryValue prefs_;
ObserverList<PrefStore::Observer, true> observers_;