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

Unified Diff: services/preferences/public/interfaces/preferences.mojom

Issue 2474653003: PreferencesManager (Closed)
Patch Set: Updates Created 4 years 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: services/preferences/public/interfaces/preferences.mojom
diff --git a/services/preferences/public/interfaces/preferences.mojom b/services/preferences/public/interfaces/preferences.mojom
index bf8d186bfea59db06e7f86cfb37a073846e2c366..c064d92b17288752fd8852fa200a6cbfa07dd7d2 100644
--- a/services/preferences/public/interfaces/preferences.mojom
+++ b/services/preferences/public/interfaces/preferences.mojom
@@ -6,6 +6,8 @@ module prefs.mojom;
import "mojo/common/common_custom_types.mojom";
+const string kCapabilityName = "prefs:manager";
+
// Used to subscribe to preference changes within PreferenceManager. After
// requesting to observe, the current values for all requested keys are sent.
interface PreferencesObserver {
@@ -15,6 +17,7 @@ interface PreferencesObserver {
// Manages actual read/write of preference data. Accepts observers who subscribe
// to preferences, notifying them of changes.
interface PreferencesManager {
- AddObserver(array<string> preferences, PreferencesObserver client);
+ AddObserver(PreferencesObserver client);
SetPreferences(mojo.common.mojom.DictionaryValue preferences);
+ Subscribe(array<string> preferences);
};

Powered by Google App Engine
This is Rietveld 408576698