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

Unified Diff: content/browser/tab_contents/tab_contents.cc

Issue 7791029: When the user navigates to the home page, make sure to set the RLZ string (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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
Index: content/browser/tab_contents/tab_contents.cc
===================================================================
--- content/browser/tab_contents/tab_contents.cc (revision 98807)
+++ content/browser/tab_contents/tab_contents.cc (working copy)
@@ -141,6 +141,7 @@
void MakeNavigateParams(const NavigationEntry& entry,
const NavigationController& controller,
+ TabContentsDelegate* delegate,
NavigationController::ReloadType reload_type,
ViewMsg_Navigate_Params* params) {
params->page_id = entry.page_id();
@@ -154,6 +155,10 @@
params->navigation_type =
GetNavigationType(controller.browser_context(), entry, reload_type);
params->request_time = base::Time::Now();
+ params->extra_headers = entry.extra_headers();
+
+ if (delegate)
+ params->extra_headers += delegate->GetNavigationHeaders(params->url);
sky 2011/08/30 17:05:25 Is concatanating the strings going to do the right
Roger Tawa OOO till Jul 10th 2011/08/30 18:58:32 Good catch. Done.
}
} // namespace
@@ -587,11 +592,8 @@
// Navigate in the desired RenderViewHost.
ViewMsg_Navigate_Params navigate_params;
- MakeNavigateParams(entry, controller_, reload_type, &navigate_params);
- if (delegate_) {
- navigate_params.extra_headers =
- delegate_->GetNavigationHeaders(navigate_params.url);
- }
+ MakeNavigateParams(entry, controller_, delegate_, reload_type,
+ &navigate_params);
dest_render_view_host->Navigate(navigate_params);
if (entry.page_id() == -1) {

Powered by Google App Engine
This is Rietveld 408576698