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

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

Issue 8216009: Use TYPED PageTransition for Omnibox prerendering. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_contents.cc
diff --git a/chrome/browser/prerender/prerender_contents.cc b/chrome/browser/prerender/prerender_contents.cc
index fbc8b5be3c01d5867f09eba11b1cfa73ce58647a..d6dcbbbad65cfae91646e473f5fe204c019c9825 100644
--- a/chrome/browser/prerender/prerender_contents.cc
+++ b/chrome/browser/prerender/prerender_contents.cc
@@ -319,8 +319,12 @@ void PrerenderContents::StartPrerendering(
DCHECK(load_start_time_.is_null());
load_start_time_ = base::TimeTicks::Now();
- new_contents->controller().LoadURL(prerender_url_,
- referrer_, PageTransition::LINK,
+ PageTransition::Type transition = PageTransition::LINK;
+ if (origin_ == ORIGIN_OMNIBOX_ORIGINAL ||
cbentzel 2011/10/10 15:55:15 Perhaps an IsOmniboxOrigin() helper?
dominich 2011/10/10 15:57:47 I considered it, but these two origins are only go
+ origin_ == ORIGIN_OMNIBOX_CONSERVATIVE) {
+ transition = PageTransition::TYPED;
+ }
+ new_contents->controller().LoadURL(prerender_url_, referrer_, transition,
std::string());
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698