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

Side by Side Diff: components/autofill/ios/browser/personal_data_manager_observer_bridge.mm

Issue 2849533003: [ObjC ARC] Converts components/autofill/ios/browser:browser to ARC. (Closed)
Patch Set: Address comments Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/autofill/ios/browser/personal_data_manager_observer_bridge.h " 5 #import "components/autofill/ios/browser/personal_data_manager_observer_bridge.h "
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 #if !defined(__has_feature) || !__has_feature(objc_arc)
10 #error "This file requires ARC support."
11 #endif
12
9 namespace autofill { 13 namespace autofill {
10 14
11 PersonalDataManagerObserverBridge::PersonalDataManagerObserverBridge( 15 PersonalDataManagerObserverBridge::PersonalDataManagerObserverBridge(
12 id<PersonalDataManagerObserverBridgeDelegate> delegate) 16 id<PersonalDataManagerObserverBridgeDelegate> delegate)
13 : delegate_(delegate) { 17 : delegate_(delegate) {
14 DCHECK(delegate_); 18 DCHECK(delegate_);
15 } 19 }
16 20
17 PersonalDataManagerObserverBridge::~PersonalDataManagerObserverBridge() { 21 PersonalDataManagerObserverBridge::~PersonalDataManagerObserverBridge() {
18 } 22 }
19 23
20 void PersonalDataManagerObserverBridge::OnPersonalDataChanged() { 24 void PersonalDataManagerObserverBridge::OnPersonalDataChanged() {
21 [delegate_ onPersonalDataChanged]; 25 [delegate_ onPersonalDataChanged];
22 } 26 }
23 27
24 void PersonalDataManagerObserverBridge::OnInsufficientFormData() { 28 void PersonalDataManagerObserverBridge::OnInsufficientFormData() {
25 if ([delegate_ respondsToSelector:@selector(onInsufficientFormData)]) 29 if ([delegate_ respondsToSelector:@selector(onInsufficientFormData)])
26 [delegate_ onInsufficientFormData]; 30 [delegate_ onInsufficientFormData];
27 } 31 }
28 32
29 } // namespace autofill 33 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698