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

Unified Diff: chrome/browser/ui/webui/options/autofill_options_handler.h

Issue 301343002: mac: Clean up autofill integration with Address Book. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@autofill_cleanup2_base
Patch Set: Autofill test failures on Android. Undo a change to autofill_test_utils.cc. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/options/autofill_options_handler.h
diff --git a/chrome/browser/ui/webui/options/autofill_options_handler.h b/chrome/browser/ui/webui/options/autofill_options_handler.h
index a98a98639e47456a3d5fba039d179f14d9f44a3e..bd7a100175bb2733beb01b6ed8ec7e7098735b6c 100644
--- a/chrome/browser/ui/webui/options/autofill_options_handler.h
+++ b/chrome/browser/ui/webui/options/autofill_options_handler.h
@@ -46,6 +46,13 @@ class AutofillOptionsHandler : public OptionsPageUIHandler,
// Loads Autofill addresses and credit cards using the PersonalDataManager.
void LoadAutofillData();
+#if defined(OS_MACOSX) && !defined(OS_IOS)
+ // The user wants to grant Chrome access to the user's Address Book.
+ // Immediately try to access the Address Book so that the blocking dialog is
+ // shown in context, rather than at a later, surprising time.
+ void AccessAddressBook(const base::ListValue* args);
+#endif // defined(OS_MACOSX) && !defined(OS_IOS)
+
// Removes data from the PersonalDataManager.
// |args| - A string, the GUID of the address or credit card to remove.
void RemoveData(const base::ListValue* args);

Powered by Google App Engine
This is Rietveld 408576698