Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / components / autofill / ios / browser / personal_data_manager_observer_bridge.mm
blobe03fe0ee5b08547e85879273a0987f52c59ec58a
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"
9 namespace autofill {
11 PersonalDataManagerObserverBridge::PersonalDataManagerObserverBridge(
12     id<PersonalDataManagerObserverBridgeDelegate> delegate)
13     : delegate_(delegate) {
14   DCHECK(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