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

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

Issue 339053003: patched from issue 334653006, modified (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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..a0da3329a1e002723e90746a22aa1db26ddae37b 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,10 @@ 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() {
« no previous file with comments | « chrome/browser/ui/autofill/chrome_autofill_client.h ('k') | chrome/browser/ui/autofill/chrome_autofill_client_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698