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

Unified Diff: ui/views/widget/native_widget_mac.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
« no previous file with comments | « ui/message_center/cocoa/popup_collection_unittest.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_mac.mm
diff --git a/ui/views/widget/native_widget_mac.mm b/ui/views/widget/native_widget_mac.mm
index e34f61d29a401810224eab5a67c3bf6cf9689f99..f61ff8171a5d455c0b0ef4d375980e30e03b2a5a 100644
--- a/ui/views/widget/native_widget_mac.mm
+++ b/ui/views/widget/native_widget_mac.mm
@@ -6,6 +6,8 @@
#import <Cocoa/Cocoa.h>
+#include <utility>
+
#include "base/mac/foundation_util.h"
#include "base/mac/scoped_nsobject.h"
#include "base/strings/sys_string_conversions.h"
@@ -367,7 +369,7 @@ void NativeWidgetMac::CloseNow() {
// Notify observers while |bridged_| is still valid.
delegate_->OnNativeWidgetDestroying();
// Reset |bridge_| to NULL before destroying it.
- scoped_ptr<BridgedNativeWidget> bridge(bridge_.Pass());
+ scoped_ptr<BridgedNativeWidget> bridge(std::move(bridge_));
}
void NativeWidgetMac::Show() {
« no previous file with comments | « ui/message_center/cocoa/popup_collection_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698