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

Unified Diff: chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.mm

Issue 2769333006: Replace unique_ptr.reset(other_unique_ptr.release()) with std::move() in chrome/browser (Closed)
Patch Set: Created 3 years, 9 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/constrained_window/constrained_window_mac.mm
diff --git a/chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.mm b/chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.mm
index 4df3304d5bdc81228de507edac19e255e6c05efc..4a631bb231a65e0b6e2a164222016319e65ff226 100644
--- a/chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.mm
+++ b/chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.mm
@@ -59,7 +59,7 @@ new SingleWebContentsDialogManagerCocoa(this, sheet_.get(),
void ConstrainedWindowMac::ShowWebContentsModalDialog() {
std::unique_ptr<SingleWebContentsDialogManagerCocoa> dialog_manager;
- dialog_manager.reset(native_manager_.release());
+ dialog_manager = std::move(native_manager_);
GetDialogManager()->ShowDialogWithManager(
[sheet_.get() sheetWindow], std::move(dialog_manager));
}

Powered by Google App Engine
This is Rietveld 408576698