summaryrefslogtreecommitdiffstats
path: root/chrome/browser/instant
diff options
context:
space:
mode:
authordominich@chromium.org <dominich@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-28 19:21:51 +0000
committerdominich@chromium.org <dominich@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-28 19:21:51 +0000
commitdcee2a3b94ec9603d97cf46edac8c33525a0ade8 (patch)
treeb1d7cd899f429a091f8d34860c71e7b628353a31 /chrome/browser/instant
parent248242a79a708824f5b40816d203c8179e77d85f (diff)
downloadchromium_src-dcee2a3b94ec9603d97cf46edac8c33525a0ade8.zip
chromium_src-dcee2a3b94ec9603d97cf46edac8c33525a0ade8.tar.gz
chromium_src-dcee2a3b94ec9603d97cf46edac8c33525a0ade8.tar.bz2
PrerenderManager public API cleanup.
BUG= TEST=Prerender* Review URL: http://codereview.chromium.org/7272011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90815 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/instant')
-rw-r--r--chrome/browser/instant/instant_controller.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/browser/instant/instant_controller.cc b/chrome/browser/instant/instant_controller.cc
index 7269522..61cedf0 100644
--- a/chrome/browser/instant/instant_controller.cc
+++ b/chrome/browser/instant/instant_controller.cc
@@ -176,10 +176,8 @@ void InstantController::Update(TabContentsWrapper* tab_contents,
// Start Prerender of this page instead.
prerender::PrerenderManager* prerender_manager =
tab_contents_->profile()->GetPrerenderManager();
- if (prerender_manager) {
- prerender_manager->AddPrerender(prerender::ORIGIN_OMNIBOX,
- match.destination_url);
- }
+ if (prerender_manager)
+ prerender_manager->AddPrerenderFromOmnibox(match.destination_url);
DestroyPreviewContentsAndLeaveActive();
return;