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

Unified Diff: chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm

Issue 2028823003: Mac: Make ScopedTypeRef require explicit constructors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix iOS build Created 4 years, 7 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/autofill/card_unmask_prompt_view_bridge.mm
diff --git a/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm b/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm
index f51cba6881962b0be728d3671a20ef40124139be..24d8254396328e3acb91abdb8f0d4f2ed0e6ae95 100644
--- a/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm
+++ b/chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm
@@ -473,7 +473,7 @@ - (void)createStorageViewWithController:
storageView_.reset([[NSView alloc] initWithFrame:NSZeroRect]);
[storageView_ setAutoresizingMask:NSViewWidthSizable];
- base::scoped_nsobject<NSBox> box = [CardUnmaskPromptViewCocoa createPlainBox];
+ base::scoped_nsobject<NSBox> box([CardUnmaskPromptViewCocoa createPlainBox]);
[box setAutoresizingMask:NSViewWidthSizable];
[box setFillColor:skia::SkColorToCalibratedNSColor(kShadingColor)];
[box setContentViewMargins:NSMakeSize(chrome_style::kHorizontalPadding,
@@ -506,8 +506,8 @@ - (void)createStorageViewWithController:
NSMakePoint(NSMaxX([storageCheckbox_ frame]) + kButtonGap, 0)];
// Add horizontal separator.
- base::scoped_nsobject<NSBox> separator =
- [CardUnmaskPromptViewCocoa createPlainBox];
+ base::scoped_nsobject<NSBox> separator(
+ [CardUnmaskPromptViewCocoa createPlainBox]);
[separator setAutoresizingMask:NSViewWidthSizable];
[separator setFillColor:skia::SkColorToCalibratedNSColor(kSubtleBorderColor)];
[storageView_ addSubview:separator];

Powered by Google App Engine
This is Rietveld 408576698