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

Unified Diff: chrome/browser/extensions/api/bluetooth_low_energy/utils.cc

Issue 1549233002: Convert Pass()→std::move() in //chrome/browser/extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years 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: chrome/browser/extensions/api/bluetooth_low_energy/utils.cc
diff --git a/chrome/browser/extensions/api/bluetooth_low_energy/utils.cc b/chrome/browser/extensions/api/bluetooth_low_energy/utils.cc
index c9f4b78013709368b718c34b31b9aabbe8e0c912..69cda098f9833d81f73ebd760e7ac84fcb2b32fa 100644
--- a/chrome/browser/extensions/api/bluetooth_low_energy/utils.cc
+++ b/chrome/browser/extensions/api/bluetooth_low_energy/utils.cc
@@ -19,7 +19,7 @@ scoped_ptr<base::ListValue> CharacteristicPropertiesToValue(
iter != properties.end();
++iter)
property_list->Append(new base::StringValue(ToString(*iter)));
- return property_list.Pass();
+ return property_list;
}
} // namespace
@@ -33,7 +33,7 @@ scoped_ptr<base::DictionaryValue> CharacteristicToValue(Characteristic* from) {
scoped_ptr<base::DictionaryValue> to = from->ToValue();
to->SetWithoutPathExpansion(
"properties", CharacteristicPropertiesToValue(properties).release());
- return to.Pass();
+ return to;
}
scoped_ptr<base::DictionaryValue> DescriptorToValue(Descriptor* from) {
@@ -48,7 +48,7 @@ scoped_ptr<base::DictionaryValue> DescriptorToValue(Descriptor* from) {
DCHECK(chrc_value);
chrc_value->SetWithoutPathExpansion(
"properties", CharacteristicPropertiesToValue(properties).release());
- return to.Pass();
+ return to;
}
} // namespace bluetooth_low_energy

Powered by Google App Engine
This is Rietveld 408576698