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

Side by Side Diff: services/preferences/public/cpp/lib/util.h

Issue 2812863002: Pref service: Add a ScopedDictionaryPrefUpdate to track value changes. (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SERVICES_PREFERENCES_PUBLIC_CPP_LIB_UTIL_H_
6 #define SERVICES_PREFERENCES_PUBLIC_CPP_LIB_UTIL_H_
7
8 #include <memory>
9 #include <vector>
10
11 #include "base/strings/string_piece.h"
12
13 namespace base {
14 class DictionaryValue;
15 class Value;
16 }
17
18 namespace prefs {
19
20 void SetValue(base::DictionaryValue* dictionary_value,
tibell 2017/04/12 07:13:52 // Sets a nested value inside the dictionary, spec
21 const std::vector<base::StringPiece>& path_components,
22 std::unique_ptr<base::Value> value);
23
24 } // namespace prefs
25
26 #endif // SERVICES_PREFERENCES_PUBLIC_CPP_LIB_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698