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

Unified Diff: base/prefs/value_map_pref_store.cc

Issue 1647803004: Move base to DEPS (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 months 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 | « base/prefs/value_map_pref_store.h ('k') | base/prefs/writeable_pref_store.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/prefs/value_map_pref_store.cc
diff --git a/base/prefs/value_map_pref_store.cc b/base/prefs/value_map_pref_store.cc
deleted file mode 100644
index f22f93aed6946901f06cc6bdea51b32e290e8f51..0000000000000000000000000000000000000000
--- a/base/prefs/value_map_pref_store.cc
+++ /dev/null
@@ -1,63 +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 "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 flags) {
- if (prefs_.SetValue(key, value.Pass()))
- FOR_EACH_OBSERVER(Observer, observers_, OnPrefValueChanged(key));
-}
-
-void ValueMapPrefStore::RemoveValue(const std::string& key, uint32 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 flags) {
- FOR_EACH_OBSERVER(Observer, observers_, OnPrefValueChanged(key));
-}
-
-void ValueMapPrefStore::SetValueSilently(const std::string& key,
- scoped_ptr<base::Value> value,
- uint32 flags) {
- prefs_.SetValue(key, value.Pass());
-}
-
-ValueMapPrefStore::~ValueMapPrefStore() {}
-
-void ValueMapPrefStore::NotifyInitializationCompleted() {
- FOR_EACH_OBSERVER(Observer, observers_, OnInitializationCompleted(true));
-}
« no previous file with comments | « base/prefs/value_map_pref_store.h ('k') | base/prefs/writeable_pref_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698