Index: components/prefs/value_map_pref_store.cc |
diff --git a/components/prefs/value_map_pref_store.cc b/components/prefs/value_map_pref_store.cc |
deleted file mode 100644 |
index fdb087fc9ec2209bcdb3a07226ba11542be0ee8d..0000000000000000000000000000000000000000 |
--- a/components/prefs/value_map_pref_store.cc |
+++ /dev/null |
@@ -1,64 +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. |
- |
-#include "base/prefs/value_map_pref_store.h" |
- |
-#include <algorithm> |
-#include <utility> |
- |
-#include "base/stl_util.h" |
-#include "base/values.h" |
- |
-ValueMapPrefStore::ValueMapPrefStore() {} |
- |
-bool ValueMapPrefStore::GetValue(const std::string& key, |
- const base::Value** value) const { |
- return prefs_.GetValue(key, value); |
-} |
- |
-void ValueMapPrefStore::AddObserver(PrefStore::Observer* observer) { |
- observers_.AddObserver(observer); |
-} |
- |
-void ValueMapPrefStore::RemoveObserver(PrefStore::Observer* observer) { |
- observers_.RemoveObserver(observer); |
-} |
- |
-bool ValueMapPrefStore::HasObservers() const { |
- return observers_.might_have_observers(); |
-} |
- |
-void ValueMapPrefStore::SetValue(const std::string& key, |
- scoped_ptr<base::Value> value, |
- uint32_t flags) { |
- if (prefs_.SetValue(key, std::move(value))) |
- FOR_EACH_OBSERVER(Observer, observers_, OnPrefValueChanged(key)); |
-} |
- |
-void ValueMapPrefStore::RemoveValue(const std::string& key, uint32_t flags) { |
- if (prefs_.RemoveValue(key)) |
- FOR_EACH_OBSERVER(Observer, observers_, OnPrefValueChanged(key)); |
-} |
- |
-bool ValueMapPrefStore::GetMutableValue(const std::string& key, |
- base::Value** value) { |
- return prefs_.GetValue(key, value); |
-} |
- |
-void ValueMapPrefStore::ReportValueChanged(const std::string& key, |
- uint32_t flags) { |
- FOR_EACH_OBSERVER(Observer, observers_, OnPrefValueChanged(key)); |
-} |
- |
-void ValueMapPrefStore::SetValueSilently(const std::string& key, |
- scoped_ptr<base::Value> value, |
- uint32_t flags) { |
- prefs_.SetValue(key, std::move(value)); |
-} |
- |
-ValueMapPrefStore::~ValueMapPrefStore() {} |
- |
-void ValueMapPrefStore::NotifyInitializationCompleted() { |
- FOR_EACH_OBSERVER(Observer, observers_, OnInitializationCompleted(true)); |
-} |