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

Unified Diff: chrome/browser/prefs/value_map_pref_store.cc

Issue 11243002: Move the bits of Prefs where production code has only trivially easy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, fix gypi problem Created 8 years, 2 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
Index: chrome/browser/prefs/value_map_pref_store.cc
diff --git a/chrome/browser/prefs/value_map_pref_store.cc b/chrome/browser/prefs/value_map_pref_store.cc
deleted file mode 100644
index 98f9cdd3c7c25d3851119bf71fdf8fd3f2593945..0000000000000000000000000000000000000000
--- a/chrome/browser/prefs/value_map_pref_store.cc
+++ /dev/null
@@ -1,61 +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 "chrome/browser/prefs/value_map_pref_store.h"
-
-#include <algorithm>
-
-#include "base/stl_util.h"
-#include "base/values.h"
-
-ValueMapPrefStore::ValueMapPrefStore() {}
-
-PrefStore::ReadResult ValueMapPrefStore::GetValue(const std::string& key,
- const Value** value) const {
- return prefs_.GetValue(key, value) ? READ_OK : READ_NO_VALUE;
-}
-
-void ValueMapPrefStore::AddObserver(PrefStore::Observer* observer) {
- observers_.AddObserver(observer);
-}
-
-void ValueMapPrefStore::RemoveObserver(PrefStore::Observer* observer) {
- observers_.RemoveObserver(observer);
-}
-
-size_t ValueMapPrefStore::NumberOfObservers() const {
- return observers_.size();
-}
-
-ValueMapPrefStore::iterator ValueMapPrefStore::begin() {
- return prefs_.begin();
-}
-
-ValueMapPrefStore::iterator ValueMapPrefStore::end() {
- return prefs_.end();
-}
-
-ValueMapPrefStore::const_iterator ValueMapPrefStore::begin() const {
- return prefs_.begin();
-}
-
-ValueMapPrefStore::const_iterator ValueMapPrefStore::end() const {
- return prefs_.end();
-}
-
-ValueMapPrefStore::~ValueMapPrefStore() {}
-
-void ValueMapPrefStore::SetValue(const std::string& key, Value* value) {
- if (prefs_.SetValue(key, value))
- FOR_EACH_OBSERVER(Observer, observers_, OnPrefValueChanged(key));
-}
-
-void ValueMapPrefStore::RemoveValue(const std::string& key) {
- if (prefs_.RemoveValue(key))
- FOR_EACH_OBSERVER(Observer, observers_, OnPrefValueChanged(key));
-}
-
-void ValueMapPrefStore::NotifyInitializationCompleted() {
- FOR_EACH_OBSERVER(Observer, observers_, OnInitializationCompleted(true));
-}
« no previous file with comments | « chrome/browser/prefs/value_map_pref_store.h ('k') | chrome/browser/printing/cloud_print/cloud_print_proxy_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698