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

Issue 11506006: [cros] RLZ tracking can be turned off via a flag file. (Closed)

Created:
8 years ago by Ivan Korotkov
Modified:
8 years ago
CC:
chromium-reviews
Visibility:
Public.

Description

[cros] RLZ tracking can be turned off via a flag file. Also loads brand code from file for previous users. BUG=157348 TBR=pkasting@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173472

Patch Set 1 #

Patch Set 2 : Split TestLoginUtils into a separate filepair. #

Patch Set 3 : fixes #

Total comments: 12

Patch Set 4 : Review fixes #

Total comments: 4

Patch Set 5 : Ensure rlz_unittests don't touch /home/ivankr #

Patch Set 6 : RLZ flag file checked on worker pool #

Patch Set 7 : Cleanup #

Patch Set 8 : renamed SetTemporaryBrand #

Patch Set 9 : merge #

Patch Set 10 : Fix LoginUtils browser_test #

Patch Set 11 : Fix LoginUtilsBlockingLoginTest #

Patch Set 12 : Added LoginUtilsTest.RlzInitialized #

Patch Set 13 : Set zero delay for RLZTracker in browser_tests #

Total comments: 8

Patch Set 14 : merge #

Patch Set 15 : merge #

Patch Set 16 : Review comments #

Patch Set 17 : Move RlzInitialized test to separate CL, needs more work. #

Patch Set 18 : Disable on Chromium back. #

Patch Set 19 : merge #

Patch Set 20 : Re-apply ps#16, it got lost #

Total comments: 18
Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -225 lines) Patch
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +9 lines, -0 lines 4 comments Download
M chrome/browser/chromeos/login/login_utils.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 17 18 19 7 chunks +47 lines, -8 lines 6 comments Download
M chrome/browser/chromeos/login/login_utils_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/mock_authenticator.h View 1 2 chunks +0 lines, -62 lines 0 comments Download
M chrome/browser/chromeos/login/mock_authenticator.cc View 1 4 chunks +6 lines, -60 lines 0 comments Download
M chrome/browser/chromeos/login/mock_login_utils.h View 1 2 3 1 chunk +1 line, -0 lines 2 comments Download
A + chrome/browser/chromeos/login/test_login_utils.h View 1 2 3 5 chunks +6 lines, -60 lines 2 comments Download
A chrome/browser/chromeos/login/test_login_utils.cc View 1 2 3 1 chunk +64 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller.h View 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller.cc View 3 chunks +1 line, -18 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller_browsertest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/google/google_util_chromeos.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 17 18 19 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/google/google_util_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 17 18 19 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/rlz/rlz.h View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 2 comments Download
M chrome/browser/rlz/rlz.cc View 1 2 3 4 5 6 7 8 9 6 chunks +15 lines, -14 lines 2 comments Download
M chrome/browser/search_engines/template_url_service_test_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 17 18 19 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -0 lines 0 comments Download
M rlz/test/rlz_unittest_main.cc View 1 2 3 4 2 chunks +13 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
Ivan Korotkov
PTAL: Nikita: whole CL, mainly chromeos/ Peter: google_util/ and search_engines/ Roger: rlz/ Roger, is it ...
8 years ago (2012-12-11 10:50:37 UTC) #1
Ivan Korotkov
https://codereview.chromium.org/11506006/diff/7001/build/common.gypi File build/common.gypi (left): https://codereview.chromium.org/11506006/diff/7001/build/common.gypi#oldcode1452 build/common.gypi:1452: ['branding=="Chrome" and (OS=="win" or OS=="mac" or chromeos==1)', { For ...
8 years ago (2012-12-11 10:53:19 UTC) #2
Nikita (slow)
chromeos/login lgtm https://codereview.chromium.org/11506006/diff/7001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/11506006/diff/7001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode524 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:524: // Initialize RLZ tracking. nit: Remove this ...
8 years ago (2012-12-11 13:02:54 UTC) #3
Ivan Korotkov
https://codereview.chromium.org/11506006/diff/7001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/11506006/diff/7001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode524 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:524: // Initialize RLZ tracking. On 2012/12/11 13:02:54, Nikita Kostylev ...
8 years ago (2012-12-11 15:44:52 UTC) #4
Roger Tawa OOO till Jul 10th
rlz lgtm. Thanks for cleaning up the code.
8 years ago (2012-12-11 15:47:30 UTC) #5
Peter Kasting
I don't understand why you've added SetTemporaryBrand(). Why not just make SetBrand() public instead, and ...
8 years ago (2012-12-11 20:21:49 UTC) #6
Ivan Korotkov
PTAL SetTemporaryBrand (I've renamed it to SetBrandForCurrentSession to reduce confusion) sets brand code for the ...
8 years ago (2012-12-12 13:05:56 UTC) #7
Ivan Korotkov
Time moves on: snow falls, branch point nears. Please, take a look!
8 years ago (2012-12-14 15:04:26 UTC) #8
Roger Tawa OOO till Jul 10th
Looks fine Ivan. One question below. https://codereview.chromium.org/11506006/diff/30001/chrome/browser/chromeos/login/login_utils_browsertest.cc File chrome/browser/chromeos/login/login_utils_browsertest.cc (right): https://codereview.chromium.org/11506006/diff/30001/chrome/browser/chromeos/login/login_utils_browsertest.cc#newcode537 chrome/browser/chromeos/login/login_utils_browsertest.cc:537: // RLZ value ...
8 years ago (2012-12-14 15:27:07 UTC) #9
Ivan Korotkov
https://codereview.chromium.org/11506006/diff/30001/chrome/browser/chromeos/login/login_utils_browsertest.cc File chrome/browser/chromeos/login/login_utils_browsertest.cc (right): https://codereview.chromium.org/11506006/diff/30001/chrome/browser/chromeos/login/login_utils_browsertest.cc#newcode537 chrome/browser/chromeos/login/login_utils_browsertest.cc:537: // RLZ value for homepage access point should have ...
8 years ago (2012-12-14 15:32:44 UTC) #10
Roger Tawa OOO till Jul 10th
I see. Looks fine as is. You could also call RLZTracker::set_tracker() with a mock RLZTrack, ...
8 years ago (2012-12-14 16:17:19 UTC) #11
Nikita (slow)
On 2012/12/14 15:04:26, Ivan Korotkov wrote: > Time moves on: > snow falls, branch point ...
8 years ago (2012-12-14 21:39:20 UTC) #12
Ivan Korotkov
Ilya, can you please take a look at google_util?
8 years ago (2012-12-14 21:41:36 UTC) #13
Ilya Sherman
https://codereview.chromium.org/11506006/diff/30001/build/common.gypi File build/common.gypi (left): https://codereview.chromium.org/11506006/diff/30001/build/common.gypi#oldcode1462 build/common.gypi:1462: ['branding=="Chrome" and (OS=="win" or OS=="mac" or chromeos==1)', { This ...
8 years ago (2012-12-15 00:57:16 UTC) #14
Ivan Korotkov
https://codereview.chromium.org/11506006/diff/30001/build/common.gypi File build/common.gypi (left): https://codereview.chromium.org/11506006/diff/30001/build/common.gypi#oldcode1462 build/common.gypi:1462: ['branding=="Chrome" and (OS=="win" or OS=="mac" or chromeos==1)', { On ...
8 years ago (2012-12-17 09:05:01 UTC) #15
Ivan Korotkov
All of the google_util-related comments have been fulfilled, TBRing Peter since there's not much time ...
8 years ago (2012-12-17 12:50:56 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ivankr@chromium.org/11506006/39023
8 years ago (2012-12-17 12:51:13 UTC) #17
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_browsertests
8 years ago (2012-12-17 13:41:06 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ivankr@chromium.org/11506006/47022
8 years ago (2012-12-17 13:56:44 UTC) #19
commit-bot: I haz the power
Change committed as 173472
8 years ago (2012-12-17 15:58:28 UTC) #20
Peter Kasting
LGTM, but the phrase "financial ping" is problematic, both because it's unclear and because I ...
8 years ago (2012-12-17 20:14:03 UTC) #21
Ivan Korotkov
Thanks for looking, I'll address comments in a follow-up CL.
8 years ago (2012-12-18 12:25:58 UTC) #22
Ivan Korotkov
Uploaded https://codereview.chromium.org/11645040/ with fixes https://chromiumcodereview.appspot.com/11506006/diff/47022/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://chromiumcodereview.appspot.com/11506006/diff/47022/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode502 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:502: RLZTracker::EnableZeroDelayForTesting(); On 2012/12/17 20:14:03, Peter ...
8 years ago (2012-12-20 09:20:42 UTC) #23
Peter Kasting
https://chromiumcodereview.appspot.com/11506006/diff/47022/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://chromiumcodereview.appspot.com/11506006/diff/47022/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode502 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:502: RLZTracker::EnableZeroDelayForTesting(); On 2012/12/20 09:20:42, Ivan Korotkov wrote: > On ...
8 years ago (2012-12-20 19:32:00 UTC) #24
Ivan Korotkov
8 years ago (2012-12-21 09:59:48 UTC) #25
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/11506006/diff/47022/chrome/browser/chr...
File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right):

https://chromiumcodereview.appspot.com/11506006/diff/47022/chrome/browser/chr...
chrome/browser/chromeos/chrome_browser_main_chromeos.cc:502:
RLZTracker::EnableZeroDelayForTesting();
On 2012/12/20 19:32:00, Peter Kasting wrote:
> On 2012/12/20 09:20:42, Ivan Korotkov wrote:
> > On 2012/12/17 20:14:03, Peter Kasting wrote:
> > > Must we call this here?  Can we instead enable in individual tests that
> care,
> > as
> > > you've already done elsewhere in this CL?
> > 
> > I'd like to leave it here (like WizardController::SetZeroDelays in
> > PostProfileInit) because otherwise any browser test that uses real
LoginUtils
> > and calls GetBlockingPool()->FlushForTesting() will be slowed down by 20
> seconds
> > without an obvious reason.
> 
> Then can we make one of the following happen instead:
> * In testing mode, the RLZ tracker _always_ runs in zero-delay mode (i.e. we
do
> this check in the RLZ code itself).
> * In testing mode, the RLZ tracker doesn't do anything at all unless you
> explicitly enable it, or perhaps DCHECKs or something.
> 
> Either one of these is better than having some somewhat random code added to
the
> startup functions; startup is so hairy we should go to great lengths to avoid
> making it do anything further.

Ok, let's do the 1st option.

Powered by Google App Engine
This is Rietveld 408576698