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

Unified Diff: components/autofill/core/browser/autofill_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/autofill_manager.h
diff --git a/components/autofill/core/browser/autofill_manager.h b/components/autofill/core/browser/autofill_manager.h
index 856be0e989ba737b169f5ee3db628941cfe3cd1a..ec5a1a6ee5e4f386b1319f8202dfef900ce4fd3c 100644
--- a/components/autofill/core/browser/autofill_manager.h
+++ b/components/autofill/core/browser/autofill_manager.h
@@ -84,6 +84,20 @@ class AutofillManager : public AutofillDownloadManager::Observer {
void ShowAutofillSettings();
+#if defined(OS_MACOSX)
+ // Whether Chromium has prompted the user for permission to access the user's
+ // address book.
+ bool HasPromptedForAccessToAddressBook();
+ // Whether the field represented by |fieldData| supports autofill from the
+ // user's address book.
+ bool FieldSupportsAddressBookAutofill(const FormData& data,
+ const FormFieldData& fieldData);
+ // If Chromium has not prompted for access to the user's address book, the
+ // method prompts the user for permission and blocks the process. Otherwise,
+ // this method has no effect.
+ void AccessAddressBook();
+#endif // defined(OS_MACOSX)
+
// Called from our external delegate so they cannot be private.
virtual void FillOrPreviewForm(AutofillDriver::RendererFormDataAction action,
int query_id,

Powered by Google App Engine
This is Rietveld 408576698