Chromium Code Reviews| 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) | |
|
Ilya Sherman
2014/06/14 01:18:51
Why might the manager be null?
erikchen
2014/06/16 20:30:46
There is no comment indicating that the method is
| |
| 30 manager->BinaryChanging(); | |
| 31 return; | |
| 32 } | |
| 33 default: | |
| 34 return; | |
| 35 } | |
| 36 } | |
| 37 | |
| 38 } // namespace autofill | |
| OLD | NEW |