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

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: Handle TemplateURL change 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
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 662eca70de07a86df7f160b805ce7c4c37bffc73..c6e1bb65d7fd49fa86e949a65397d318505c9d8b 100644
--- a/chrome/browser/ui/browser_instant_controller.cc
+++ b/chrome/browser/ui/browser_instant_controller.cc
@@ -302,12 +302,14 @@ void BrowserInstantController::OnDefaultSearchProviderChanged(
if (!contents)
continue;
- if (!instant_service->IsInstantProcess(
- contents->GetRenderProcessHost()->GetID()))
- continue;
+ // Send new search URLs to the renderer.
samarth 2013/09/20 16:43:40 I assume this will go in before https://codereview
Jered 2013/09/20 20:55:49 Ack.
+ 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);
}
}

Powered by Google App Engine
This is Rietveld 408576698