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

Unified Diff: components/web_modal/web_contents_modal_dialog_manager.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers 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: components/web_modal/web_contents_modal_dialog_manager.cc
diff --git a/components/web_modal/web_contents_modal_dialog_manager.cc b/components/web_modal/web_contents_modal_dialog_manager.cc
index 46f6af988fc5a0db0915829d5404788ac51f8f9c..e940b077a002f604a4b5918b56598bf2bb50f97e 100644
--- a/components/web_modal/web_contents_modal_dialog_manager.cc
+++ b/components/web_modal/web_contents_modal_dialog_manager.cc
@@ -4,6 +4,8 @@
#include "components/web_modal/web_contents_modal_dialog_manager.h"
+#include <utility>
+
#include "components/web_modal/web_contents_modal_dialog_manager_delegate.h"
#include "content/public/browser/navigation_details.h"
#include "content/public/browser/navigation_entry.h"
@@ -36,7 +38,7 @@ void WebContentsModalDialogManager::SetDelegate(
void WebContentsModalDialogManager::ShowModalDialog(gfx::NativeWindow dialog) {
scoped_ptr<SingleWebContentsDialogManager> mgr(
CreateNativeWebModalManager(dialog, this));
- ShowDialogWithManager(dialog, mgr.Pass());
+ ShowDialogWithManager(dialog, std::move(mgr));
}
// TODO(gbillock): Maybe "ShowBubbleWithManager"?
@@ -45,7 +47,7 @@ void WebContentsModalDialogManager::ShowDialogWithManager(
scoped_ptr<SingleWebContentsDialogManager> manager) {
if (delegate_)
manager->HostChanged(delegate_->GetWebContentsModalDialogHost());
- child_dialogs_.push_back(new DialogState(dialog, manager.Pass()));
+ child_dialogs_.push_back(new DialogState(dialog, std::move(manager)));
if (child_dialogs_.size() == 1) {
BlockWebContentsInteraction(true);

Powered by Google App Engine
This is Rietveld 408576698