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

Unified Diff: chrome/browser/prerender/prerender_observer.cc

Issue 7210020: Added prerendering to omnibox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 9 years, 6 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/prerender/prerender_observer.h ('k') | chrome/browser/prerender/prerender_origin.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_observer.cc
diff --git a/chrome/browser/prerender/prerender_observer.cc b/chrome/browser/prerender/prerender_observer.cc
index eb5e2573f69f09fc06923e0e6915776867704e67..b75d94568b4990787dea94888aa9aded192f0613 100644
--- a/chrome/browser/prerender/prerender_observer.cc
+++ b/chrome/browser/prerender/prerender_observer.cc
@@ -32,7 +32,7 @@ void PrerenderObserver::ProvisionalChangeToMainFrameUrl(const GURL& url,
if (prerender_manager->IsTabContentsPrerendering(tab_contents()))
return;
prerender_manager->MarkTabContentsAsNotPrerendered(tab_contents());
- MaybeUsePreloadedPage(url, has_opener_set);
+ MaybeUsePrerenderedPage(url, has_opener_set);
prerender_manager->RecordNavigation(url);
}
@@ -72,15 +72,15 @@ PrerenderManager* PrerenderObserver::MaybeGetPrerenderManager() {
return tab_contents()->profile()->GetPrerenderManager();
}
-bool PrerenderObserver::MaybeUsePreloadedPage(const GURL& url,
- bool has_opener_set) {
+bool PrerenderObserver::MaybeUsePrerenderedPage(const GURL& url,
+ bool has_opener_set) {
PrerenderManager* prerender_manager = MaybeGetPrerenderManager();
if (!prerender_manager)
return false;
DCHECK(!prerender_manager->IsTabContentsPrerendering(tab_contents()));
- return prerender_manager->MaybeUsePreloadedPage(tab_contents(),
- url,
- has_opener_set);
+ return prerender_manager->MaybeUsePrerenderedPage(tab_contents(),
+ url,
+ has_opener_set);
}
bool PrerenderObserver::IsPrerendering() {
« no previous file with comments | « chrome/browser/prerender/prerender_observer.h ('k') | chrome/browser/prerender/prerender_origin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698