OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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. |
| 4 |
| 5 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" |
| 6 |
| 7 #import "chrome/browser/autofill/autofill_keystone_observer_mac.h" |
| 8 #include "components/autofill/core/browser/personal_data_manager.h" |
| 9 |
| 10 namespace autofill { |
| 11 |
| 12 void ChromeAutofillClient::AddKeystoneObserver() { |
| 13 DCHECK(!keystone_observer_); |
| 14 keystone_observer_ = new AutofillKeystoneObserverMac(this); |
| 15 } |
| 16 |
| 17 void ChromeAutofillClient::RemoveKeystoneObserver() { |
| 18 DCHECK(keystone_observer_); |
| 19 delete keystone_observer_; |
| 20 keystone_observer_ = NULL; |
| 21 } |
| 22 |
| 23 void ChromeAutofillClient::OnKeystoneNotification( |
| 24 keystone_glue::AutoupdateStatus status) { |
| 25 switch (status) { |
| 26 case keystone_glue::kAutoupdateInstalling: |
| 27 case keystone_glue::kAutoupdateInstalled: { |
| 28 PersonalDataManager* manager = GetPersonalDataManager(); |
| 29 if (manager) |
| 30 manager->BinaryChanging(); |
| 31 return; |
| 32 } |
| 33 default: |
| 34 return; |
| 35 } |
| 36 } |
| 37 |
| 38 } // namespace autofill |
OLD | NEW |