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

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: When the user navigates to the home page, make sure to set the RLZ string 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 99286)
+++ content/browser/tab_contents/tab_contents.cc (working copy)
@@ -140,6 +140,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();
@@ -153,6 +154,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)
+ delegate->AddNavigationHeaders(params->url, &params->extra_headers);
}
} // 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) {
« no previous file with comments | « content/browser/tab_contents/navigation_entry.h ('k') | content/browser/tab_contents/tab_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698