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

Unified Diff: ash/common/shelf/shelf_controller.h

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: ash/common/shelf/shelf_controller.h
diff --git a/ash/common/shelf/shelf_controller.h b/ash/common/shelf/shelf_controller.h
index b058d4ffbf1b95880e98c55685a3c0f2635077d8..7ea895a72fac9d1051f4ed40bb65d8e20576c47c 100644
--- a/ash/common/shelf/shelf_controller.h
+++ b/ash/common/shelf/shelf_controller.h
@@ -14,6 +14,7 @@
#include "ash/public/interfaces/shelf.mojom.h"
#include "mojo/public/cpp/bindings/binding_set.h"
#include "mojo/public/cpp/bindings/interface_ptr_set.h"
+#include "services/preferences/public/cpp/pref_observer_store.h"
namespace ash {
@@ -64,6 +65,8 @@ class ShelfController : public mojom::ShelfController {
// The set of shelf observers notified about shelf state and settings changes.
mojo::AssociatedInterfacePtrSet<mojom::ShelfObserver> observers_;
+ scoped_refptr<PrefObserverStore> store_;
+
// Mappings between application and shelf ids.
std::map<std::string, ShelfID> app_id_to_shelf_id_;
std::map<ShelfID, std::string> shelf_id_to_app_id_;

Powered by Google App Engine
This is Rietveld 408576698