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

Unified Diff: chrome/browser/media/media_stream_capture_indicator.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (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: chrome/browser/media/media_stream_capture_indicator.cc
diff --git a/chrome/browser/media/media_stream_capture_indicator.cc b/chrome/browser/media/media_stream_capture_indicator.cc
index 400e011a53ca3ffd4e1b6d7342aa0e73199a1903..5e7df032f66c9252d2dab16340b195a6f56fbda2 100644
--- a/chrome/browser/media/media_stream_capture_indicator.cc
+++ b/chrome/browser/media/media_stream_capture_indicator.cc
@@ -5,8 +5,8 @@
#include "chrome/browser/media/media_stream_capture_indicator.h"
#include <stddef.h>
-
#include <string>
+#include <utility>
#include "base/logging.h"
#include "base/macros.h"
@@ -418,7 +418,7 @@ void MediaStreamCaptureIndicator::UpdateNotificationUserInterface() {
// The icon will take the ownership of the passed context menu.
MaybeCreateStatusTrayIcon(audio, video);
if (status_icon_) {
- status_icon_->SetContextMenu(menu.Pass());
+ status_icon_->SetContextMenu(std::move(menu));
}
}

Powered by Google App Engine
This is Rietveld 408576698