diff options
Diffstat (limited to 'extensions/common/value_builder.cc')
-rw-r--r-- | extensions/common/value_builder.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/extensions/common/value_builder.cc b/extensions/common/value_builder.cc index b15bca8..89c3ec3 100644 --- a/extensions/common/value_builder.cc +++ b/extensions/common/value_builder.cc @@ -4,6 +4,8 @@ #include "extensions/common/value_builder.h" +#include <utility> + #include "base/json/json_writer.h" #include "base/values.h" @@ -51,19 +53,19 @@ DictionaryBuilder& DictionaryBuilder::Set(const std::string& path, DictionaryBuilder& DictionaryBuilder::Set(const std::string& path, DictionaryBuilder& in_value) { - dict_->SetWithoutPathExpansion(path, in_value.Build().Pass()); + dict_->SetWithoutPathExpansion(path, in_value.Build()); return *this; } DictionaryBuilder& DictionaryBuilder::Set(const std::string& path, ListBuilder in_value) { - dict_->SetWithoutPathExpansion(path, in_value.Build().Pass()); + dict_->SetWithoutPathExpansion(path, in_value.Build()); return *this; } DictionaryBuilder& DictionaryBuilder::Set(const std::string& path, scoped_ptr<base::Value> in_value) { - dict_->SetWithoutPathExpansion(path, in_value.Pass()); + dict_->SetWithoutPathExpansion(path, std::move(in_value)); return *this; } |