diff options
author | csharp@chromium.org <csharp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-27 21:27:23 +0000 |
---|---|---|
committer | csharp@chromium.org <csharp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-27 21:27:23 +0000 |
commit | 4d8240e018c40d4f2517ea7559706fa723e41391 (patch) | |
tree | 222841ba53c66dcb6895078d4012c72b9d70b90b /chrome/browser/autofill | |
parent | ff7766242727b79e44144dcc171e00f414b2eb79 (diff) | |
download | chromium_src-4d8240e018c40d4f2517ea7559706fa723e41391.zip chromium_src-4d8240e018c40d4f2517ea7559706fa723e41391.tar.gz chromium_src-4d8240e018c40d4f2517ea7559706fa723e41391.tar.bz2 |
Fix Linux new Autofill UI Crash
Only remove gtk signal handler if connected and only hide the popup if it is still visible.
BUG=160866
Review URL: https://chromiumcodereview.appspot.com/11416015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169762 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill')
-rw-r--r-- | chrome/browser/autofill/autofill_external_delegate.h | 2 | ||||
-rw-r--r-- | chrome/browser/autofill/autofill_popup_view.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/autofill/autofill_external_delegate.h b/chrome/browser/autofill/autofill_external_delegate.h index e013095..d0a4189 100644 --- a/chrome/browser/autofill/autofill_external_delegate.h +++ b/chrome/browser/autofill/autofill_external_delegate.h @@ -139,6 +139,8 @@ class AutofillExternalDelegate // Return the web_contents associated with this delegate. content::WebContents* web_contents() { return web_contents_; } + bool popup_visible() const { return popup_visible_; } + private: // Fills the form with the Autofill data corresponding to |unique_id|. // If |is_preview| is true then this is just a preview to show the user what diff --git a/chrome/browser/autofill/autofill_popup_view.h b/chrome/browser/autofill/autofill_popup_view.h index b396de0..5240276 100644 --- a/chrome/browser/autofill/autofill_popup_view.h +++ b/chrome/browser/autofill/autofill_popup_view.h @@ -41,7 +41,7 @@ class AutofillPopupView { // the delegate. void ClearExternalDelegate(); - const gfx::Rect& element_bounds() { return element_bounds_; } + const gfx::Rect& element_bounds() const { return element_bounds_; } protected: // Display the autofill popup and fill it in with the values passed in. |