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

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

Issue 23475040: Add transition type qualifier to prerendered pages from omnibox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, handle ORIGIN_INSTANT too Created 6 years, 11 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 952e8097d34436836c8fd70368177f363a8e9284..8b3dcb1f57f66a4f05bb78cdda0485df8924fbc1 100644
--- a/chrome/browser/prerender/prerender_contents.cc
+++ b/chrome/browser/prerender/prerender_contents.cc
@@ -337,8 +337,11 @@ void PrerenderContents::StartPrerendering(
prerender_url_);
load_url_params.referrer = referrer_;
load_url_params.transition_type =
- ((origin_ == ORIGIN_OMNIBOX || origin_ == ORIGIN_INSTANT) ?
- content::PAGE_TRANSITION_TYPED : content::PAGE_TRANSITION_LINK);
+ (origin_ == ORIGIN_OMNIBOX || origin_ == ORIGIN_INSTANT)
+ ? content::PageTransitionFromInt(
+ content::PAGE_TRANSITION_TYPED |
+ content::PAGE_TRANSITION_FROM_ADDRESS_BAR)
+ : content::PAGE_TRANSITION_LINK;
load_url_params.override_user_agent =
prerender_manager_->config().is_overriding_user_agent ?
content::NavigationController::UA_OVERRIDE_TRUE :
« 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