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

Unified Diff: chrome/browser/instant/instant_controller.cc

Issue 12593012: Instant: Possible fix for crash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 9 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/instant/instant_controller.cc
diff --git a/chrome/browser/instant/instant_controller.cc b/chrome/browser/instant/instant_controller.cc
index 2ac58173b02f73b30e5d0ca40d73b957d4349d7b..924688cd55c07bed903e89b8815dbc50decca666 100644
--- a/chrome/browser/instant/instant_controller.cc
+++ b/chrome/browser/instant/instant_controller.cc
@@ -631,9 +631,10 @@ bool InstantController::CommitIfPossible(InstantCommitType type) {
if (type == INSTANT_COMMIT_PRESSED_ENTER &&
(last_match_was_search_ ||
last_suggestion_.behavior == INSTANT_COMPLETE_NEVER)) {
- EnsureSearchTermsAreSet(instant_tab_->contents(), last_omnibox_text_);
+ last_suggestion_.text.clear();
Jered 2013/03/17 17:43:38 Why do this?
sreeram 2013/03/17 17:53:27 Line 636 calls Focus() on the web contents. I assu
instant_tab_->Submit(last_omnibox_text_);
instant_tab_->contents()->GetView()->Focus();
+ EnsureSearchTermsAreSet(instant_tab_->contents(), last_omnibox_text_);
return true;
}
return false;
« 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