diff options
author | rogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-02 03:36:47 +0000 |
---|---|---|
committer | rogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-02 03:36:47 +0000 |
commit | 6c6b02dcf61fa8d344a3b1768b5e9610c17468c1 (patch) | |
tree | 1d62f8bc14264eace0e5bf489edb3634142d7df4 /content/common | |
parent | 2bf646e71e7f103b1e761a68284462849cba7bcb (diff) | |
download | chromium_src-6c6b02dcf61fa8d344a3b1768b5e9610c17468c1.zip chromium_src-6c6b02dcf61fa8d344a3b1768b5e9610c17468c1.tar.gz chromium_src-6c6b02dcf61fa8d344a3b1768b5e9610c17468c1.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.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99283
Review URL: http://codereview.chromium.org/7791029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99309 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common')
-rw-r--r-- | content/common/content_notification_types.h | 4 | ||||
-rw-r--r-- | content/common/page_transition_types.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/content/common/content_notification_types.h b/content/common/content_notification_types.h index 14e72f7..144ebb7 100644 --- a/content/common/content_notification_types.h +++ b/content/common/content_notification_types.h @@ -43,8 +43,8 @@ enum NotificationType { // // This notification is called after the pending entry is created, but // before we actually try to navigate. The source will be the - // NavigationController that owns the pending entry, and there are no - // details. + // NavigationController that owns the pending entry, and the details + // will be a NavigationEntry. NOTIFICATION_NAV_ENTRY_PENDING, // A new non-pending navigation entry has been created. This will diff --git a/content/common/page_transition_types.h b/content/common/page_transition_types.h index 357b433..1bd6ec9 100644 --- a/content/common/page_transition_types.h +++ b/content/common/page_transition_types.h @@ -108,6 +108,9 @@ class PageTransition { // User used the address bar to trigger this navigation. FROM_ADDRESS_BAR = 0x02000000, + // User is navigating to the home page. + HOME_PAGE = 0x04000000, + // The beginning of a navigation chain. CHAIN_START = 0x10000000, |