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

Issue 7508034: Make a pre-read A/B field-trial (Closed)

Created:
9 years, 4 months ago by chrisha
Modified:
9 years, 4 months ago
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

Make a pre-read A/B field-trial This CL disables/enables the Windows pre-read optimization based on a client-side coin-toss. The base::FieldTrial mechanism has not been used as it is not available until *after* chrome.dll is loaded, and this needs to occur before. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95579

Patch Set 1 : '' #

Total comments: 16

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Total comments: 3

Patch Set 5 : '' #

Total comments: 4

Patch Set 6 : '' #

Total comments: 2

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -9 lines) Patch
M chrome/app/client_util.cc View 1 2 3 4 3 chunks +25 lines, -1 line 0 comments Download
M chrome/browser/browser_main.h View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/browser_main.cc View 1 2 3 4 5 6 3 chunks +45 lines, -2 lines 0 comments Download
M chrome/browser/browser_main_win.cc View 1 2 3 4 5 6 1 chunk +3 lines, -6 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
chrisha
PTAL.
9 years, 4 months ago (2011-08-03 20:57:41 UTC) #1
jar (doing other things)
This only big issue is the privacy angle. See comments below. http://codereview.chromium.org/7508034/diff/4001/chrome/app/client_util.cc File chrome/app/client_util.cc (right): ...
9 years, 4 months ago (2011-08-03 21:24:34 UTC) #2
Sigurður Ásgeirsson
nice! http://codereview.chromium.org/7508034/diff/4001/chrome/app/client_util.cc File chrome/app/client_util.cc (right): http://codereview.chromium.org/7508034/diff/4001/chrome/app/client_util.cc#newcode148 chrome/app/client_util.cc:148: const wchar_t kPreReadExperimentKey[] = L"PreReadExperiment"; nit: static http://codereview.chromium.org/7508034/diff/4001/chrome/app/client_util.cc#newcode154 ...
9 years, 4 months ago (2011-08-04 13:35:32 UTC) #3
chrisha
I address jar@ and siggi@'s comments. Additionally, there was a rework of how the experiment ...
9 years, 4 months ago (2011-08-04 14:48:40 UTC) #4
Sigurður Ásgeirsson
nice! http://codereview.chromium.org/7508034/diff/13003/chrome/app/client_util.cc File chrome/app/client_util.cc (right): http://codereview.chromium.org/7508034/diff/13003/chrome/app/client_util.cc#newcode168 chrome/app/client_util.cc:168: env->SetVar("CHROME_PRE_READ_EXPERIMENT", as we discussed, this only runs if ...
9 years, 4 months ago (2011-08-04 15:18:38 UTC) #5
chrisha
Side-stepped the registry entirely, and moved to a coin-toss that occurs at every chrome.exe launch. ...
9 years, 4 months ago (2011-08-04 15:26:50 UTC) #6
Sigurður Ásgeirsson
lgtm with one last nit http://codereview.chromium.org/7508034/diff/13005/chrome/app/client_util.cc File chrome/app/client_util.cc (right): http://codereview.chromium.org/7508034/diff/13005/chrome/app/client_util.cc#newcode151 chrome/app/client_util.cc:151: // We communicate the ...
9 years, 4 months ago (2011-08-04 15:32:00 UTC) #7
jar (doing other things)
http://codereview.chromium.org/7508034/diff/4001/chrome/app/client_util.cc File chrome/app/client_util.cc (right): http://codereview.chromium.org/7508034/diff/4001/chrome/app/client_util.cc#newcode154 chrome/app/client_util.cc:154: if (key.WriteValue(kPreReadExperimentKey, coin_toss) == 0) My apologies for my ...
9 years, 4 months ago (2011-08-04 18:34:28 UTC) #8
chrisha
Alright... hopefully the last iteration. Tested and doing what it is supposed to be doing. ...
9 years, 4 months ago (2011-08-04 18:50:33 UTC) #9
Sigurður Ásgeirsson
lgtm with a last couple of nits. http://codereview.chromium.org/7508034/diff/13009/chrome/browser/browser_main_win.cc File chrome/browser/browser_main_win.cc (right): http://codereview.chromium.org/7508034/diff/13009/chrome/browser/browser_main_win.cc#newcode277 chrome/browser/browser_main_win.cc:277: void AddPreReadHistogramTime(const ...
9 years, 4 months ago (2011-08-04 18:57:52 UTC) #10
chrisha
I don't have the ability to commit to chrome. Care to take care of this ...
9 years, 4 months ago (2011-08-04 19:02:07 UTC) #11
jar (doing other things)
LGTM See nit below. http://codereview.chromium.org/7508034/diff/14008/chrome/browser/browser_main_win.cc File chrome/browser/browser_main_win.cc (right): http://codereview.chromium.org/7508034/diff/14008/chrome/browser/browser_main_win.cc#newcode285 chrome/browser/browser_main_win.cc:285: UMA_HISTOGRAM_CUSTOM_TIMES(name, time, kMin, kMax, kBuckets); ...
9 years, 4 months ago (2011-08-04 19:11:03 UTC) #12
chrisha
Thanks, committing. http://codereview.chromium.org/7508034/diff/14016/chrome/browser/browser_main_win.cc File chrome/browser/browser_main_win.cc (right): http://codereview.chromium.org/7508034/diff/14016/chrome/browser/browser_main_win.cc#newcode286 chrome/browser/browser_main_win.cc:286: DCHECK(counter != NULL); On 2011/08/04 19:11:03, jar ...
9 years, 4 months ago (2011-08-04 19:19:06 UTC) #13
commit-bot: I haz the power
9 years, 4 months ago (2011-08-05 05:28:07 UTC) #14
Change committed as 95579

Powered by Google App Engine
This is Rietveld 408576698