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

Unified Diff: chrome/browser/ui/browser_instant_controller.cc

Issue 23455047: InstantExtended: Send search URLs to renderers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More browsertest fixes Created 7 years, 3 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/search/search_unittest.cc ('k') | chrome/browser/ui/search/instant_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_instant_controller.cc
diff --git a/chrome/browser/ui/browser_instant_controller.cc b/chrome/browser/ui/browser_instant_controller.cc
index 378d276493145d038bbe1351130e1e6dbb84e346..76f85cca74f46d09e1b886da46401696636b931a 100644
--- a/chrome/browser/ui/browser_instant_controller.cc
+++ b/chrome/browser/ui/browser_instant_controller.cc
@@ -288,12 +288,14 @@ void BrowserInstantController::ReloadTabsInInstantProcess() {
if (!contents)
continue;
- if (!instant_service->IsInstantProcess(
- contents->GetRenderProcessHost()->GetID()))
- continue;
+ // Send new search URLs to the renderer.
+ content::RenderProcessHost* rph = contents->GetRenderProcessHost();
+ instant_service->SendSearchURLsToRenderer(rph);
// Reload the contents to ensure that it gets assigned to a non-priviledged
// renderer.
+ if (!instant_service->IsInstantProcess(rph->GetID()))
+ continue;
contents->GetController().Reload(false);
}
}
« no previous file with comments | « chrome/browser/search/search_unittest.cc ('k') | chrome/browser/ui/search/instant_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698