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

Unified Diff: chrome/browser/ui/autofill/chrome_autofill_client.cc

Issue 334653006: mac: Prevent Address Book permissions dialog from erroneously appearing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test. 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/autofill/chrome_autofill_client.cc
diff --git a/chrome/browser/ui/autofill/chrome_autofill_client.cc b/chrome/browser/ui/autofill/chrome_autofill_client.cc
index 945cee7fa6c2fdc51f9c840ed5346af8e6661a3a..d848917132c9be6350cbc02e862f67818941a729 100644
--- a/chrome/browser/ui/autofill/chrome_autofill_client.cc
+++ b/chrome/browser/ui/autofill/chrome_autofill_client.cc
@@ -37,6 +37,9 @@ namespace autofill {
ChromeAutofillClient::ChromeAutofillClient(content::WebContents* web_contents)
: content::WebContentsObserver(web_contents), web_contents_(web_contents) {
DCHECK(web_contents);
+#if defined(OS_MACOSX) && !defined(OS_IOS)
+ RegisterForKeystoneNotifications();
+#endif // defined(OS_MACOSX) && !defined(OS_IOS)
}
ChromeAutofillClient::~ChromeAutofillClient() {
@@ -45,6 +48,9 @@ ChromeAutofillClient::~ChromeAutofillClient() {
// this point (in particular, the WebContentsImpl destructor has already
// finished running and we are now in the base class destructor).
DCHECK(!popup_controller_);
+#if defined(OS_MACOSX) && !defined(OS_IOS)
+ UnregisterFromKeystoneNotifications();
+#endif // defined(OS_MACOSX) && !defined(OS_IOS)
}
void ChromeAutofillClient::TabActivated() {

Powered by Google App Engine
This is Rietveld 408576698