summaryrefslogtreecommitdiffstats
path: root/ui/snapshot
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2015-12-29 18:07:29 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-30 02:08:29 +0000
commit4de264fefd402143d2f4874ae51e601001ff80f6 (patch)
tree34f94e5b86bb339bc6d8c6f2d8fe45ad9a123b79 /ui/snapshot
parentd5ccdf12f8f65b6dcaad74acc86aa76e2ed015d5 (diff)
downloadchromium_src-4de264fefd402143d2f4874ae51e601001ff80f6.zip
chromium_src-4de264fefd402143d2f4874ae51e601001ff80f6.tar.gz
chromium_src-4de264fefd402143d2f4874ae51e601001ff80f6.tar.bz2
Global conversion of Pass()→std::move() on OS=android
(╯^□^)╯︵ ❄☃❄ BUG=557422 R=avi@chromium.org TBR=jam@chromium.org Review URL: https://codereview.chromium.org/1557553002 Cr-Commit-Position: refs/heads/master@{#367133}
Diffstat (limited to 'ui/snapshot')
-rw-r--r--ui/snapshot/snapshot_android.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/snapshot/snapshot_android.cc b/ui/snapshot/snapshot_android.cc
index a8200be..0a123b9 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(