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

Unified Diff: mojo/common/values_struct_traits.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 | « components/prefs/writeable_pref_store.cc ('k') | mojo/common/values_struct_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/common/values_struct_traits.h
diff --git a/mojo/common/values_struct_traits.h b/mojo/common/values_struct_traits.h
index 7d8c2ed72171c09e1c76170fd1b38deac40a6441..d5024010da5fc804e1cec866867cf77877160614 100644
--- a/mojo/common/values_struct_traits.h
+++ b/mojo/common/values_struct_traits.h
@@ -252,6 +252,12 @@ struct UnionTraits<common::mojom::ValueDataView, std::unique_ptr<base::Value>> {
std::unique_ptr<base::Value>* value);
};
+template <>
+struct CloneTraits<std::unique_ptr<base::Value>, false> {
+ static std::unique_ptr<base::Value> Clone(
+ const std::unique_ptr<base::Value>& input);
+};
+
} // namespace mojo
#endif // MOJO_COMMON_VALUES_STRUCT_TRAITS_H_
« no previous file with comments | « components/prefs/writeable_pref_store.cc ('k') | mojo/common/values_struct_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698