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

Unified Diff: ui/snapshot/snapshot_android.cc

Issue 1557553002: Global conversion of Pass()→std::move() on OS=android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « ui/events/gestures/blink/web_gesture_curve_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/snapshot/snapshot_android.cc
diff --git a/ui/snapshot/snapshot_android.cc b/ui/snapshot/snapshot_android.cc
index a8200be708df7f46de0ffb94bba8dba36153c850..0a123b9f2dcf8e26cd0d7c6d70e42c82955a9bb1 100644
--- a/ui/snapshot/snapshot_android.cc
+++ b/ui/snapshot/snapshot_android.cc
@@ -4,6 +4,8 @@
#include "ui/snapshot/snapshot.h"
+#include <utility>
+
#include "base/bind.h"
#include "cc/output/copy_output_request.h"
#include "third_party/skia/include/core/SkBitmap.h"
@@ -53,7 +55,7 @@ static void MakeAsyncCopyRequest(
source_rect_in_pixel.size());
request->set_area(adjusted_source_rect);
- window->GetCompositor()->RequestCopyOfOutputOnRootLayer(request.Pass());
+ window->GetCompositor()->RequestCopyOfOutputOnRootLayer(std::move(request));
}
void GrabWindowSnapshotAndScaleAsync(
« no previous file with comments | « ui/events/gestures/blink/web_gesture_curve_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698