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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/browser_instant_controller.h" 5 #include "chrome/browser/ui/browser_instant_controller.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "chrome/browser/extensions/extension_service.h" 9 #include "chrome/browser/extensions/extension_service.h"
10 #include "chrome/browser/extensions/extension_web_ui.h" 10 #include "chrome/browser/extensions/extension_web_ui.h"
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 if (!instant_service) 295 if (!instant_service)
296 return; 296 return;
297 297
298 TabStripModel* tab_model = browser_->tab_strip_model(); 298 TabStripModel* tab_model = browser_->tab_strip_model();
299 int count = tab_model->count(); 299 int count = tab_model->count();
300 for (int index = 0; index < count; ++index) { 300 for (int index = 0; index < count; ++index) {
301 content::WebContents* contents = tab_model->GetWebContentsAt(index); 301 content::WebContents* contents = tab_model->GetWebContentsAt(index);
302 if (!contents) 302 if (!contents)
303 continue; 303 continue;
304 304
305 if (!instant_service->IsInstantProcess( 305 // 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.
306 contents->GetRenderProcessHost()->GetID())) 306 content::RenderProcessHost* rph = contents->GetRenderProcessHost();
307 continue; 307 instant_service->SendSearchURLsToRenderer(rph);
308 308
309 // Reload the contents to ensure that it gets assigned to a non-priviledged 309 // Reload the contents to ensure that it gets assigned to a non-priviledged
310 // renderer. 310 // renderer.
311 if (!instant_service->IsInstantProcess(rph->GetID()))
312 continue;
311 contents->GetController().Reload(false); 313 contents->GetController().Reload(false);
312 } 314 }
313 } 315 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698