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

Unified Diff: chrome/browser/ui/cocoa/extensions/windowed_install_dialog_controller.mm

Issue 1579863003: Convert Pass()→std::move() for Mac build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months 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/cocoa/extensions/windowed_install_dialog_controller.mm
diff --git a/chrome/browser/ui/cocoa/extensions/windowed_install_dialog_controller.mm b/chrome/browser/ui/cocoa/extensions/windowed_install_dialog_controller.mm
index ed06c87df3f33b8e9693b711e8132f3f46fdc796..2b2178e3715fbdc6373bbfdd8572877bc9502c4f 100644
--- a/chrome/browser/ui/cocoa/extensions/windowed_install_dialog_controller.mm
+++ b/chrome/browser/ui/cocoa/extensions/windowed_install_dialog_controller.mm
@@ -4,6 +4,8 @@
#import "chrome/browser/ui/cocoa/extensions/windowed_install_dialog_controller.h"
+#include <utility>
+
#import "base/callback_helpers.h"
#import "base/mac/sdk_forward_declarations.h"
#include "base/message_loop/message_loop.h"
@@ -39,7 +41,7 @@ WindowedInstallDialogController::WindowedInstallDialogController(
initWithProfile:show_params->profile()
navigator:show_params->GetParentWebContents()
delegate:this
- prompt:prompt.Pass()]);
+ prompt:std::move(prompt)]);
[[install_controller_ window] makeKeyAndOrderFront:nil];
}
@@ -98,7 +100,7 @@ void WindowedInstallDialogController::OnStoreLinkClicked() {
initWithProfile:profile
navigator:navigator
delegate:delegate
- prompt:prompt.Pass()]);
+ prompt:std::move(prompt)]);
NSWindow* window = [self window];
// Ensure the window does not display behind the app launcher window, and is

Powered by Google App Engine
This is Rietveld 408576698