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

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

Issue 2474653003: PreferencesManager (Closed)
Patch Set: Ash example Created 4 years, 1 month 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/preferences_manager.cc
diff --git a/chrome/browser/prefs/preferences_manager.cc b/chrome/browser/prefs/preferences_manager.cc
new file mode 100644
index 0000000000000000000000000000000000000000..10078ab11d6bb6c6393d404a55f8f617079f5d74
--- /dev/null
+++ b/chrome/browser/prefs/preferences_manager.cc
@@ -0,0 +1,27 @@
+// Copyright 2016 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/preferences_manager.h"
+
+namespace chrome {
+
+PreferencesManager::PreferencesManager() {}
+PreferencesManager::~PreferencesManager() {}
+
+void PreferencesManager::AddObserver(
+ const std::vector<std::string>& preferences,
+ prefs::mojom::PreferencesObserverPtr client) {
+ // TODO(jonross): Use PrefStore::Observer to begin observing the requested
+ // |preferences|. Map these keys to |client|. On changed notifications
+ // call prefs::mojom::PreferenceObserver::OnPreferencesChanged
+}
+
+void PreferencesManager::SetPreferences(
+ const base::DictionaryValue& preferences) {
+ // TODO(jonross): update the preference, if changed, ignore
+ // PrefStore::Observer
+ // notificaitons that are the result of us.
+}
+
+} // namespace chrome
« ash/common/shelf/shelf_controller.cc ('K') | « chrome/browser/prefs/preferences_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698