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

Side by Side Diff: ios/chrome/browser/passwords/update_password_infobar_controller.mm

Issue 2574463002: [ObjC ARC] Converts ios/chrome/browser/infobars:infobars to ARC.\n\nAutomatically generated ARCMigr… (Closed)
Patch Set: retain-autorelease Created 4 years 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "ios/chrome/browser/passwords/update_password_infobar_controller.h" 5 #import "ios/chrome/browser/passwords/update_password_infobar_controller.h"
6 6
7 #import "base/mac/objc_property_releaser.h" 7 #import "base/mac/objc_property_releaser.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/strings/sys_string_conversions.h" 9 #include "base/strings/sys_string_conversions.h"
10 #include "ios/chrome/browser/infobars/confirm_infobar_controller+protected.h" 10 #include "ios/chrome/browser/infobars/confirm_infobar_controller+protected.h"
(...skipping 21 matching lines...) Expand all
32 32
33 - (instancetype)initWithDelegate:(InfoBarViewDelegate*)delegate { 33 - (instancetype)initWithDelegate:(InfoBarViewDelegate*)delegate {
34 self = [super initWithDelegate:delegate]; 34 self = [super initWithDelegate:delegate];
35 if (self) { 35 if (self) {
36 _propertyReleaser_UpdatePasswordInfoBarController.Init( 36 _propertyReleaser_UpdatePasswordInfoBarController.Init(
37 self, [UpdatePasswordInfoBarController class]); 37 self, [UpdatePasswordInfoBarController class]);
38 } 38 }
39 return self; 39 return self;
40 } 40 }
41 41
42 - (base::scoped_nsobject<UIView<InfoBarViewProtocol>>) 42 - (UIView<InfoBarViewProtocol>*)
43 viewForDelegate:(IOSChromeUpdatePasswordInfoBarDelegate*)delegate 43 viewForDelegate:(IOSChromeUpdatePasswordInfoBarDelegate*)delegate
44 frame:(CGRect)frame { 44 frame:(CGRect)frame {
45 _delegate = delegate; 45 _delegate = delegate;
46 return [super viewForDelegate:delegate frame:frame]; 46 return [super viewForDelegate:delegate frame:frame];
47 } 47 }
48 48
49 - (void)updateInfobarLabel:(UIView<InfoBarViewProtocol>*)view { 49 - (void)updateInfobarLabel:(UIView<InfoBarViewProtocol>*)view {
50 [super updateInfobarLabel:view]; 50 [super updateInfobarLabel:view];
51 51
52 // Get the message text with current links marked. 52 // Get the message text with current links marked.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 #pragma mark SelectorCoordinatorDelegate 86 #pragma mark SelectorCoordinatorDelegate
87 87
88 - (void)selectorCoordinator:(SelectorCoordinator*)coordinator 88 - (void)selectorCoordinator:(SelectorCoordinator*)coordinator
89 didCompleteWithSelection:(NSString*)selection { 89 didCompleteWithSelection:(NSString*)selection {
90 _delegate->set_selected_account(base::SysNSStringToUTF16(selection)); 90 _delegate->set_selected_account(base::SysNSStringToUTF16(selection));
91 [self updateInfobarLabel:self.view]; 91 [self updateInfobarLabel:self.view];
92 } 92 }
93 93
94 @end 94 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698