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

Issue 7791029: When the user navigates to the home page, make sure to set the RLZ string (Closed)

Created:
9 years, 3 months ago by Roger Tawa OOO till Jul 10th
Modified:
9 years, 3 months ago
Reviewers:
jam, sky
CC:
chromium-reviews, Avi (use Gerrit), brettw-cc_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

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 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99309

Patch Set 1 #

Total comments: 17

Patch Set 2 : Adressing review comments #

Total comments: 4

Patch Set 3 : Uploading to run tests, not complete #

Patch Set 4 : Fixing incorrect #if defined #

Patch Set 5 : Changes to support sync of extra headers in sessions #

Patch Set 6 : Taking out session restore changes, not needed #

Total comments: 2

Patch Set 7 : Addressed review comments #

Patch Set 8 : When the user navigates to the home page, make sure to set the RLZ string #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -52 lines) Patch
M chrome/browser/browser_main.cc View 1 2 3 4 5 6 7 2 chunks +17 lines, -4 lines 0 comments Download
M chrome/browser/instant/instant_loader.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/rlz/rlz.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/rlz/rlz.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/rlz/rlz_unittest.cc View 1 2 3 4 5 6 7 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/sessions/session_types.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 5 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_navigator.cc View 1 2 3 4 5 6 7 6 chunks +58 lines, -6 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/tab_contents/navigation_controller.h View 1 2 3 4 5 6 7 2 chunks +10 lines, -1 line 0 comments Download
M content/browser/tab_contents/navigation_controller.cc View 1 2 3 4 5 6 7 4 chunks +14 lines, -1 line 0 comments Download
M content/browser/tab_contents/navigation_controller_unittest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/tab_contents/navigation_entry.h View 1 2 3 4 5 6 7 2 chunks +12 lines, -1 line 0 comments Download
M content/browser/tab_contents/tab_contents.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -5 lines 0 comments Download
M content/browser/tab_contents/tab_contents_delegate.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/tab_contents/tab_contents_delegate.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/tab_contents/tab_contents_delegate_unittest.cc View 1 2 3 4 5 6 7 1 chunk +13 lines, -11 lines 0 comments Download
M content/common/content_notification_types.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/page_transition_types.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Roger Tawa OOO till Jul 10th
9 years, 3 months ago (2011-08-30 15:36:06 UTC) #1
sky
http://codereview.chromium.org/7791029/diff/1/chrome/browser/browser_main.cc File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/7791029/diff/1/chrome/browser/browser_main.cc#newcode1888 chrome/browser/browser_main.cc:1888: std::string homepage = pref_service->GetString(prefs::kHomePage); I don't know enough about ...
9 years, 3 months ago (2011-08-30 15:56:53 UTC) #2
Roger Tawa OOO till Jul 10th
Thanks Scott. See comments below. http://codereview.chromium.org/7791029/diff/1/chrome/browser/browser_main.cc File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/7791029/diff/1/chrome/browser/browser_main.cc#newcode1888 chrome/browser/browser_main.cc:1888: std::string homepage = pref_service->GetString(prefs::kHomePage); ...
9 years, 3 months ago (2011-08-30 16:19:31 UTC) #3
sky
LGTM http://codereview.chromium.org/7791029/diff/1/chrome/browser/ui/browser_navigator.cc File chrome/browser/ui/browser_navigator.cc (right): http://codereview.chromium.org/7791029/diff/1/chrome/browser/ui/browser_navigator.cc#newcode415 chrome/browser/ui/browser_navigator.cc:415: std::string extra_headers; On 2011/08/30 16:19:31, Roger Tawa wrote: ...
9 years, 3 months ago (2011-08-30 16:44:28 UTC) #4
jam
content/common lgtm. sky is an owner for content/browser
9 years, 3 months ago (2011-08-30 16:56:29 UTC) #5
sky
http://codereview.chromium.org/7791029/diff/1/content/browser/tab_contents/navigation_controller.cc File content/browser/tab_contents/navigation_controller.cc (right): http://codereview.chromium.org/7791029/diff/1/content/browser/tab_contents/navigation_controller.cc#newcode278 content/browser/tab_contents/navigation_controller.cc:278: Details<NavigationEntry>(entry)); Update comments for NAV_ENTRY_PENDING indicating what the details ...
9 years, 3 months ago (2011-08-30 17:05:25 UTC) #6
Roger Tawa OOO till Jul 10th
Thanks Scott, please take another look. http://codereview.chromium.org/7791029/diff/1/content/browser/tab_contents/navigation_controller.cc File content/browser/tab_contents/navigation_controller.cc (right): http://codereview.chromium.org/7791029/diff/1/content/browser/tab_contents/navigation_controller.cc#newcode278 content/browser/tab_contents/navigation_controller.cc:278: Details<NavigationEntry>(entry)); On 2011/08/30 ...
9 years, 3 months ago (2011-08-30 18:58:32 UTC) #7
sky
http://codereview.chromium.org/7791029/diff/4004/chrome/browser/sessions/base_session_service.cc File chrome/browser/sessions/base_session_service.cc (right): http://codereview.chromium.org/7791029/diff/4004/chrome/browser/sessions/base_session_service.cc#newcode180 chrome/browser/sessions/base_session_service.cc:180: WriteStringToPickle(pickle, &bytes_written, max_state_size, Add test coverage of this. http://codereview.chromium.org/7791029/diff/4004/content/browser/tab_contents/tab_contents_delegate_unittest.cc ...
9 years, 3 months ago (2011-08-30 20:16:33 UTC) #8
Roger Tawa OOO till Jul 10th
Hi Scott, This change is getting rather large. I think I'll open myself a bug ...
9 years, 3 months ago (2011-08-31 20:14:01 UTC) #9
sky
LGTM
9 years, 3 months ago (2011-08-31 20:29:58 UTC) #10
Roger Tawa OOO till Jul 10th
Hi Scott, After discussing with Tim and Nicolas, I will remove all the session restore ...
9 years, 3 months ago (2011-08-31 21:03:48 UTC) #11
sky
SLGTM http://codereview.chromium.org/7791029/diff/19013/content/browser/tab_contents/navigation_entry.h File content/browser/tab_contents/navigation_entry.h (right): http://codereview.chromium.org/7791029/diff/19013/content/browser/tab_contents/navigation_entry.h#newcode427 content/browser/tab_contents/navigation_entry.h:427: std::string extra_headers_; Put a newline between 426 and ...
9 years, 3 months ago (2011-09-01 03:46:43 UTC) #12
Roger Tawa OOO till Jul 10th
9 years, 3 months ago (2011-09-01 13:52:57 UTC) #13
Thanks Scott.  Change uploaded.  Will commit after trybots.

http://codereview.chromium.org/7791029/diff/19013/content/browser/tab_content...
File content/browser/tab_contents/navigation_entry.h (right):

http://codereview.chromium.org/7791029/diff/19013/content/browser/tab_content...
content/browser/tab_contents/navigation_entry.h:427: std::string extra_headers_;
On 2011/09/01 03:46:44, sky wrote:
> Put a newline between 426 and 427 and document this is NOT persisted with
> session restore.

Done.

Powered by Google App Engine
This is Rietveld 408576698