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

Unified Diff: chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.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/content_settings/content_setting_bubble_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.mm b/chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.mm
index f5dac295e508a010354408c896f6c51fcc9faaa4..d1dbc29b1ce31a0aa5801e230d539593530d31a7 100644
--- a/chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.mm
+++ b/chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.mm
@@ -285,7 +285,7 @@ - (id)initWithModel:(ContentSettingBubbleModel*)contentSettingBubbleModel
if ((self = [super initWithWindowNibPath:nibPath
parentWindow:parentWindow
anchoredAt:anchoredAt])) {
- contentSettingBubbleModel_.reset(model.release());
+ contentSettingBubbleModel_ = std::move(model);
decoration_ = decoration;
[self showWindow:nil];
}

Powered by Google App Engine
This is Rietveld 408576698