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()) { |