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

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

Issue 286243002: Mac: Autofill should not immediately request access to address book. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More cleanup. Created 6 years, 7 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 9ddc98e5bfff9acbad985ac93e5932d847daaac0..8e58699a0617803decc3a4fe83797c0d7f3aacb4 100644
--- a/components/autofill/core/browser/personal_data_manager.h
+++ b/components/autofill/core/browser/personal_data_manager.h
@@ -200,6 +200,12 @@ class PersonalDataManager : public KeyedService,
// will only update when Chrome is restarted.
virtual const std::string& GetDefaultCountryCodeForNewAddress() const;
+ // Whether Chromium has already attempted to access the user's address book.
+ virtual bool HasAccessMacContacts();
+ // Invokes the system prompt to give Chromium access to the user's address
+ // book. This method is blocking.
+ virtual void AccessMacContacts();
+
protected:
// Only PersonalDataManagerFactory and certain tests can create instances of
// PersonalDataManager.

Powered by Google App Engine
This is Rietveld 408576698