Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Side by Side Diff: chrome/browser/ui/autofill/chrome_autofill_client_mac.mm

Issue 334653006: mac: Prevent Address Book permissions dialog from erroneously appearing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add metrics. Note the addition of histograms.xml Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698