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
3 // found in the LICENSE file.
5 #import "components/autofill/ios/browser/personal_data_manager_observer_bridge.h"
7 #include "base/logging.h"
11 PersonalDataManagerObserverBridge::PersonalDataManagerObserverBridge(
12 id<PersonalDataManagerObserverBridgeDelegate> delegate)
13 : delegate_(delegate) {
17 PersonalDataManagerObserverBridge::~PersonalDataManagerObserverBridge() {
20 void PersonalDataManagerObserverBridge::OnPersonalDataChanged() {
21 [delegate_ onPersonalDataChanged];
24 void PersonalDataManagerObserverBridge::OnInsufficientFormData() {
25 if ([delegate_ respondsToSelector:@selector(onInsufficientFormData)])
26 [delegate_ onInsufficientFormData];
29 } // namespace autofill