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

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

Issue 17593006: mac: Update clients of scoped_nsobject.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: iwyu, scoped_nsprotocol Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #import "chrome/browser/ui/cocoa/autofill/autofill_details_container.h" 5 #import "chrome/browser/ui/cocoa/autofill/autofill_details_container.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" 9 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h"
10 #import "chrome/browser/ui/cocoa/autofill/autofill_section_container.h" 10 #import "chrome/browser/ui/cocoa/autofill/autofill_section_container.h"
11 11
12 @implementation AutofillDetailsContainer 12 @implementation AutofillDetailsContainer
13 13
14 - (id)initWithController:(autofill::AutofillDialogController*)controller { 14 - (id)initWithController:(autofill::AutofillDialogController*)controller {
15 if (self = [super init]) { 15 if (self = [super init]) {
16 controller_ = controller; 16 controller_ = controller;
17 } 17 }
18 return self; 18 return self;
19 } 19 }
20 20
21 - (void)addSection:(autofill::DialogSection)section { 21 - (void)addSection:(autofill::DialogSection)section {
22 scoped_nsobject<AutofillSectionContainer> sectionContainer( 22 base::scoped_nsobject<AutofillSectionContainer> sectionContainer(
23 [[AutofillSectionContainer alloc] initWithController:controller_ 23 [[AutofillSectionContainer alloc] initWithController:controller_
24 forSection:section]); 24 forSection:section]);
25 [details_ addObject:sectionContainer]; 25 [details_ addObject:sectionContainer];
26 } 26 }
27 27
28 - (void)loadView { 28 - (void)loadView {
29 details_.reset([[NSMutableArray alloc] init]); 29 details_.reset([[NSMutableArray alloc] init]);
30 30
31 [self addSection:autofill::SECTION_EMAIL]; 31 [self addSection:autofill::SECTION_EMAIL];
32 [self addSection:autofill::SECTION_CC]; 32 [self addSection:autofill::SECTION_CC];
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 } 71 }
72 return nil; 72 return nil;
73 } 73 }
74 74
75 - (void)modelChanged { 75 - (void)modelChanged {
76 for (AutofillSectionContainer* details in details_.get()) 76 for (AutofillSectionContainer* details in details_.get())
77 [details modelChanged]; 77 [details modelChanged];
78 } 78 }
79 79
80 @end 80 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698