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

Side by Side Diff: chrome/browser/ui/cocoa/autofill/autofill_dialog_view_tester_cocoa.mm

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_view_tester_cocoa.h" 5 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_view_tester_cocoa.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/strings/sys_string_conversions.h" 9 #include "base/strings/sys_string_conversions.h"
10 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.h" 10 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 } 54 }
55 55
56 - (BOOL)isShowingSection:(autofill::DialogSection)section { 56 - (BOOL)isShowingSection:(autofill::DialogSection)section {
57 return ![[[mainContainer_ sectionForId:section] view] isHidden]; 57 return ![[[mainContainer_ sectionForId:section] view] isHidden];
58 } 58 }
59 59
60 @end 60 @end
61 61
62 namespace autofill { 62 namespace autofill {
63 63
64 scoped_ptr<AutofillDialogViewTester> AutofillDialogViewTester::For( 64 std::unique_ptr<AutofillDialogViewTester> AutofillDialogViewTester::For(
65 AutofillDialogView* dialog) { 65 AutofillDialogView* dialog) {
66 return scoped_ptr<AutofillDialogViewTester>( 66 return std::unique_ptr<AutofillDialogViewTester>(
67 new AutofillDialogViewTesterCocoa( 67 new AutofillDialogViewTesterCocoa(
68 static_cast<AutofillDialogCocoa*>(dialog))); 68 static_cast<AutofillDialogCocoa*>(dialog)));
69 } 69 }
70 70
71 AutofillDialogViewTesterCocoa::AutofillDialogViewTesterCocoa( 71 AutofillDialogViewTesterCocoa::AutofillDialogViewTesterCocoa(
72 AutofillDialogCocoa* dialog) 72 AutofillDialogCocoa* dialog)
73 : dialog_(dialog) {} 73 : dialog_(dialog) {}
74 74
75 AutofillDialogViewTesterCocoa::~AutofillDialogViewTesterCocoa() {} 75 AutofillDialogViewTesterCocoa::~AutofillDialogViewTesterCocoa() {}
76 76
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 autofill::DialogSection section) const { 125 autofill::DialogSection section) const {
126 return [controller() isShowingSection:section]; 126 return [controller() isShowingSection:section];
127 } 127 }
128 128
129 AutofillDialogWindowController* 129 AutofillDialogWindowController*
130 AutofillDialogViewTesterCocoa::controller() const { 130 AutofillDialogViewTesterCocoa::controller() const {
131 return dialog_->sheet_delegate_; 131 return dialog_->sheet_delegate_;
132 } 132 }
133 133
134 } // namespace autofill 134 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698