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

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

Issue 6677030: Fixes crash if instant is enabled and you block JS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adds test Created 9 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 | « chrome/browser/instant/instant_browsertest.cc ('k') | chrome/renderer/searchbox_extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/instant/instant_loader.cc
diff --git a/chrome/browser/instant/instant_loader.cc b/chrome/browser/instant/instant_loader.cc
index a22e1c4bf42b8d34bf99e5524aa4101eb7320683..01947651649932514bda8ed8be885f97aa2f0722 100644
--- a/chrome/browser/instant/instant_loader.cc
+++ b/chrome/browser/instant/instant_loader.cc
@@ -544,6 +544,12 @@ void InstantLoader::TabContentsDelegateImpl::OnInstantSupportDetermined(
page_id != source->controller().GetActiveEntry()->page_id())
return;
+ Details<const bool> details(&result);
+ NotificationService::current()->Notify(
+ NotificationType::INSTANT_SUPPORT_DETERMINED,
+ NotificationService::AllSources(),
+ details);
+
if (result)
loader_->PageFinishedLoading();
else
« no previous file with comments | « chrome/browser/instant/instant_browsertest.cc ('k') | chrome/renderer/searchbox_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698