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

Unified Diff: components/sync/base/model_type.h

Issue 2889163002: Remove raw DictionaryValue::Set in //components (Closed)
Patch Set: Rebase Created 3 years, 7 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
Index: components/sync/base/model_type.h
diff --git a/components/sync/base/model_type.h b/components/sync/base/model_type.h
index eb8365323f7beb9a8e4f57afde54870ea2e6b010..05bfca893cf3a60cd619d6b75b2d5fe94df34e13 100644
--- a/components/sync/base/model_type.h
+++ b/components/sync/base/model_type.h
@@ -286,8 +286,7 @@ int ModelTypeToHistogramInt(ModelType model_type);
// Handles all model types, and not just real ones.
//
vabr (Chromium) 2017/06/01 19:53:33 nit: The empty comment line seems unnecessary. It
jdoerrie 2017/06/02 09:39:56 Done.
-// Caller takes ownership of returned value.
-base::Value* ModelTypeToValue(ModelType model_type);
+std::unique_ptr<base::Value> ModelTypeToValue(ModelType model_type);
// Converts a Value into a ModelType - complement to ModelTypeToValue().
ModelType ModelTypeFromValue(const base::Value& value);

Powered by Google App Engine
This is Rietveld 408576698