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

Unified Diff: chrome/browser/ui/views/autofill/autofill_dialog_views.cc

Issue 165223002: rAc: minimal crash fix for bug 342990. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/autofill/autofill_dialog_views.cc
diff --git a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
index 827468a8067e3b1580d21846ad9c2f79db6fd5c0..705559587449499d60c4eefa989aec5acffdb518 100644
--- a/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
+++ b/chrome/browser/ui/views/autofill/autofill_dialog_views.cc
@@ -2209,6 +2209,12 @@ void AutofillDialogViews::InputEditedOrActivated(ServerFieldType type,
DecoratedTextfield* decorated = TextfieldForType(type);
views::Combobox* combobox = ComboboxForType(type);
+
+ // Both views may be NULL if the event comes from an inactive section, which
+ // may occur when using an IME.
+ if (!combobox && !decorated)
+ return;
+
DCHECK_NE(!!combobox, !!decorated);
DetailsGroup* group = decorated ? GroupForView(decorated) :
GroupForView(combobox);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698