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

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: Don't assume personal_data_ is not NULL. 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..483616eabc2f65b14168fd81adeebdfc2e575233 100644
--- a/components/autofill/core/browser/personal_data_manager.h
+++ b/components/autofill/core/browser/personal_data_manager.h
@@ -200,6 +200,16 @@ class PersonalDataManager : public KeyedService,
// will only update when Chrome is restarted.
virtual const std::string& GetDefaultCountryCodeForNewAddress() const;
+#if defined(OS_MACOSX)
+ // Whether Chromium has prompted the user for permission to access the user's
Ilya Sherman 2014/05/21 11:29:15 nit: "Chromium" -> "Chrome" (in general, comments
erikchen 2014/05/21 22:00:54 good to know, thanks!
+ // address book.
+ bool HasPromptedForAccessToAddressBook();
Ilya Sherman 2014/05/21 11:29:15 nit: Please leave a blank line after this one.
erikchen 2014/05/21 22:00:54 Done.
+ // If Chromium has not prompted for access to the user's address book, prompts
Ilya Sherman 2014/05/21 11:29:15 nit: Ditto.
erikchen 2014/05/21 22:00:54 Done. I made sure that the diff file has no more r
+ // the user for permission and blocks the process. Otherwise, this method has
+ // no effect.
+ void AccessAddressBook();
+#endif // defined(OS_MACOSX)
+
protected:
// Only PersonalDataManagerFactory and certain tests can create instances of
// PersonalDataManager.

Powered by Google App Engine
This is Rietveld 408576698