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

Unified Diff: extensions/common/value_builder.cc

Issue 1908953003: Convert //extensions/{common,shell} from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? Created 4 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 | « extensions/common/value_builder.h ('k') | extensions/common/value_builder_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/value_builder.cc
diff --git a/extensions/common/value_builder.cc b/extensions/common/value_builder.cc
index efc2e44fad3e49602083897f0449a0876f55b47b..449fee9da3bddbd6c1fe5adcd26c4fe2117a72fd 100644
--- a/extensions/common/value_builder.cc
+++ b/extensions/common/value_builder.cc
@@ -51,8 +51,9 @@ DictionaryBuilder& DictionaryBuilder::Set(const std::string& path,
return *this;
}
-DictionaryBuilder& DictionaryBuilder::Set(const std::string& path,
- scoped_ptr<base::Value> in_value) {
+DictionaryBuilder& DictionaryBuilder::Set(
+ const std::string& path,
+ std::unique_ptr<base::Value> in_value) {
dict_->SetWithoutPathExpansion(path, std::move(in_value));
return *this;
}
@@ -90,7 +91,7 @@ ListBuilder& ListBuilder::Append(const base::string16& in_value) {
return *this;
}
-ListBuilder& ListBuilder::Append(scoped_ptr<base::Value> in_value) {
+ListBuilder& ListBuilder::Append(std::unique_ptr<base::Value> in_value) {
list_->Append(std::move(in_value));
return *this;
}
« no previous file with comments | « extensions/common/value_builder.h ('k') | extensions/common/value_builder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698