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

Unified Diff: content/browser/media/capture/aura_window_capture_machine.cc

Issue 1545243002: Convert Pass()→std::move() in //content/browser (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
Index: content/browser/media/capture/aura_window_capture_machine.cc
diff --git a/content/browser/media/capture/aura_window_capture_machine.cc b/content/browser/media/capture/aura_window_capture_machine.cc
index 6cb3e7740b0517f14d16eeb7b682c89cc0590e63..c3405994e9471fe722d032a94960303ee2b237cc 100644
--- a/content/browser/media/capture/aura_window_capture_machine.cc
+++ b/content/browser/media/capture/aura_window_capture_machine.cc
@@ -5,6 +5,7 @@
#include "content/browser/media/capture/aura_window_capture_machine.h"
#include <algorithm>
+#include <utility>
#include "base/logging.h"
#include "base/metrics/histogram.h"
@@ -189,7 +190,7 @@ void AuraWindowCaptureMachine::Capture(bool dirty) {
gfx::Rect window_rect = gfx::Rect(desktop_window_->bounds().width(),
desktop_window_->bounds().height());
request->set_area(window_rect);
- desktop_window_->layer()->RequestCopyOfOutput(request.Pass());
+ desktop_window_->layer()->RequestCopyOfOutput(std::move(request));
}
}
@@ -203,7 +204,7 @@ void AuraWindowCaptureMachine::DidCopyOutput(
static bool first_call = true;
bool succeeded = ProcessCopyOutputResponse(
- video_frame, start_time, capture_frame_cb, result.Pass());
+ video_frame, start_time, capture_frame_cb, std::move(result));
base::TimeDelta capture_time = base::TimeTicks::Now() - start_time;
« no previous file with comments | « content/browser/manifest/manifest_browsertest.cc ('k') | content/browser/media/capture/desktop_capture_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698