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

Unified Diff: content/browser/device_sensors/ambient_light_mac.cc

Issue 1579863003: Convert Pass()→std::move() for Mac build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: content/browser/device_sensors/ambient_light_mac.cc
diff --git a/content/browser/device_sensors/ambient_light_mac.cc b/content/browser/device_sensors/ambient_light_mac.cc
index 187f6a0697d21c93312b079c5448a832f91ff085..6f8d3d99d4c8c730f992b2ca99baade76b4b3dd7 100644
--- a/content/browser/device_sensors/ambient_light_mac.cc
+++ b/content/browser/device_sensors/ambient_light_mac.cc
@@ -6,6 +6,8 @@
#include "content/browser/device_sensors/ambient_light_mac.h"
+#include <utility>
+
#include "base/mac/scoped_cftyperef.h"
#include "base/mac/scoped_ioobject.h"
@@ -23,7 +25,7 @@ enum LmuFunctionIndex {
// static
scoped_ptr<AmbientLightSensor> AmbientLightSensor::Create() {
scoped_ptr<AmbientLightSensor> light_sensor(new AmbientLightSensor);
- return light_sensor->Init() ? light_sensor.Pass() : nullptr;
+ return light_sensor->Init() ? std::move(light_sensor) : nullptr;
}
AmbientLightSensor::~AmbientLightSensor() {

Powered by Google App Engine
This is Rietveld 408576698