Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 " |
|
stkhapugin
2017/04/11 11:09:16
In this header you need to annotate |delegate_| wi
| |
| 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 |
| OLD | NEW |