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

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

Issue 7058022: Fixes crash with instant enabled. The crash would occur if you turned (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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 06bb4109299e3ad6a2da0a47eda9bc506125a984..a6fe03a9a87944d28d396d36461b3fa8b23cd96c 100644
--- a/chrome/browser/instant/instant_controller.cc
+++ b/chrome/browser/instant/instant_controller.cc
@@ -370,7 +370,7 @@ void InstantController::OnAutocompleteGotFocus(
return;
const TemplateURL* template_url = model->GetDefaultSearchProvider();
- if (!template_url)
+ if (!template_url || !template_url->instant_url())
return;
if (tab_contents != tab_contents_)
« 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