| 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..b286c98cf1ad57c0263e78cfe3094ad623b7cdd1 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)
|
| + AddKeystoneObserver();
|
| +#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)
|
| + RemoveKeystoneObserver();
|
| +#endif // defined(OS_MACOSX) && !defined(OS_IOS)
|
| }
|
|
|
| void ChromeAutofillClient::TabActivated() {
|
|
|