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

Unified Diff: components/autofill/core/browser/personal_data_manager.h

Issue 578383002: mac: Only show the access Address Book prompt a fixed number of times. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@autofill-contacts
Patch Set: Comments from isherman, round 2. Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: components/autofill/core/browser/personal_data_manager.h
diff --git a/components/autofill/core/browser/personal_data_manager.h b/components/autofill/core/browser/personal_data_manager.h
index 570cf59d241861384beb2f83c2e4ea82c8eae9be..a539c5f8f2cf553bbb85aed49314fe0c4a8f1f00 100644
--- a/components/autofill/core/browser/personal_data_manager.h
+++ b/components/autofill/core/browser/personal_data_manager.h
@@ -211,6 +211,12 @@ class PersonalDataManager : public KeyedService,
// grant Chrome access to the user's address book.
bool ShouldShowAccessAddressBookSuggestion(AutofillType type);
+ // The access Address Book prompt was shown for a form.
+ void ShowedAccessAddressBookPrompt();
+
+ // The number of times that the access address book prompt was shown.
+ int AccessAddressBookPromptCount();
+
// The Chrome binary is in the process of being changed, or has been changed.
// Future attempts to access the Address Book might incorrectly present a
// blocking dialog.
« no previous file with comments | « components/autofill/core/browser/autofill_manager.cc ('k') | components/autofill/core/browser/personal_data_manager_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698