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

Unified Diff: chrome/browser/ui/views/external_protocol_dialog.cc

Issue 1550053002: Convert Pass()→std::move() in //chrome/browser/ui (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/ui/views/external_protocol_dialog.cc
diff --git a/chrome/browser/ui/views/external_protocol_dialog.cc b/chrome/browser/ui/views/external_protocol_dialog.cc
index 0eb50a153212309ffe23dc185a33db6d78262077..5a7d0cbb5b4b86f189a5c259ae3014bc711a7968 100644
--- a/chrome/browser/ui/views/external_protocol_dialog.cc
+++ b/chrome/browser/ui/views/external_protocol_dialog.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/ui/views/external_protocol_dialog.h"
+#include <utility>
+
#include "base/metrics/histogram.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
@@ -43,8 +45,8 @@ void ExternalProtocolHandler::RunExternalProtocolDialog(
}
// Windowing system takes ownership.
- new ExternalProtocolDialog(
- delegate.Pass(), render_process_host_id, routing_id);
+ new ExternalProtocolDialog(std::move(delegate), render_process_host_id,
+ routing_id);
}
///////////////////////////////////////////////////////////////////////////////
@@ -125,7 +127,7 @@ ExternalProtocolDialog::ExternalProtocolDialog(
scoped_ptr<const ProtocolDialogDelegate> delegate,
int render_process_host_id,
int routing_id)
- : delegate_(delegate.Pass()),
+ : delegate_(std::move(delegate)),
render_process_host_id_(render_process_host_id),
routing_id_(routing_id),
creation_time_(base::TimeTicks::Now()) {

Powered by Google App Engine
This is Rietveld 408576698