diff options
author | rogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-02 01:32:07 +0000 |
---|---|---|
committer | rogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-02 01:32:07 +0000 |
commit | 95d9e253aeb47ef0004edc29c9a8c442106b9488 (patch) | |
tree | 435296a0a46b12bc5df4e80b11543ec3e1fc44a4 /chrome/browser/sessions | |
parent | 6eff501872ea78419884b9a2c1552679ebdde534 (diff) | |
download | chromium_src-95d9e253aeb47ef0004edc29c9a8c442106b9488.zip chromium_src-95d9e253aeb47ef0004edc29c9a8c442106b9488.tar.gz chromium_src-95d9e253aeb47ef0004edc29c9a8c442106b9488.tar.bz2 |
When the user navigates to the home page, make sure to set the RLZ string
if needed.
John: can you plase look at the content\... changes?
Scott: can you plase look at the chrome\... changes?
BUG=0
TEST=Install an official chrome build (not a chromium build) with a non
organic brand code. During the install, make sure to choose google as the
home page. When google is running, pressing the home page button should
cause the request to include the RLZ http header. Pressed Alt-Home should
do the samer thing.
When starting chrome, the RLZ header should also be present since the startup
page is the home page, and the home page is set to google.
Navigating to the google.com manually by typing the URL or by clicking on
a link should not cause the hrrp header to be added.
Not choosing google as the home during install, or changing the home page
to be something other than google should stop the http header from being
added. This is true is even if the user subsequently set his home page to
google again.
Review URL: http://codereview.chromium.org/7791029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99283 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sessions')
-rw-r--r-- | chrome/browser/sessions/session_types.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/sessions/session_types.cc b/chrome/browser/sessions/session_types.cc index c1f1c28..086eb3e 100644 --- a/chrome/browser/sessions/session_types.cc +++ b/chrome/browser/sessions/session_types.cc @@ -66,6 +66,8 @@ NavigationEntry* TabNavigation::ToNavigationEntry(int page_id, // Use a transition type of reload so that we don't incorrectly // increase the typed count. PageTransition::RELOAD, + // The extra headers are not sync'ed across sessions. + std::string(), profile); entry->set_page_id(page_id); |