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

Unified Diff: services/preferences/public/cpp/lib/util.h

Issue 2812863002: Pref service: Add a ScopedDictionaryPrefUpdate to track value changes. (Closed)
Patch Set: rebase Created 3 years, 8 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 | « services/preferences/public/cpp/lib/BUILD.gn ('k') | services/preferences/public/cpp/lib/util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/preferences/public/cpp/lib/util.h
diff --git a/services/preferences/public/cpp/lib/util.h b/services/preferences/public/cpp/lib/util.h
new file mode 100644
index 0000000000000000000000000000000000000000..c7a0ce6f06f234b93b50d26360b08b289e67074c
--- /dev/null
+++ b/services/preferences/public/cpp/lib/util.h
@@ -0,0 +1,26 @@
+// Copyright 2017 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.
+
+#ifndef SERVICES_PREFERENCES_PUBLIC_CPP_LIB_UTIL_H_
+#define SERVICES_PREFERENCES_PUBLIC_CPP_LIB_UTIL_H_
+
+#include <memory>
+#include <vector>
+
+#include "base/strings/string_piece.h"
+
+namespace base {
+class DictionaryValue;
+class Value;
+}
+
+namespace prefs {
+
+void SetValue(base::DictionaryValue* dictionary_value,
+ const std::vector<base::StringPiece>& path_components,
+ std::unique_ptr<base::Value> value);
+
+} // namespace prefs
+
+#endif // SERVICES_PREFERENCES_PUBLIC_CPP_LIB_UTIL_H_
« no previous file with comments | « services/preferences/public/cpp/lib/BUILD.gn ('k') | services/preferences/public/cpp/lib/util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698