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

Issue 12684010: Add simple cache backend experiment hidden behind a flag. (Closed)

Created:
7 years, 9 months ago by pasko-google - do not use
Modified:
7 years, 9 months ago
CC:
chromium-reviews
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add simple cache backend experiment hidden behind a command line option. The option supports three possible values: --use-simple-cache-backend=on // Use the simple backend for all caches it supports. --use-simple-cache-backend=off (current default) // Do not use the simple cache backend. --use-simple-cache-backend=experiment (Android-only, will be the new default) // Choose dynamically based on the experiment parameters. We are going to be using it for triggering the simple cache backend on the current stage of development, later we will convert it to a true experiment. BUG=173390 TEST=Make sure simple cache backend runs with: chrome --use-simple-cache-backend=on # The actual backend triggering will be committed with: # https://codereview.chromium.org/12794003 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188634

Patch Set 1 #

Total comments: 10

Patch Set 2 : fixed comments per review #

Patch Set 3 : implemented just enough option states #

Total comments: 17

Patch Set 4 : codereview comments addressed #

Total comments: 1

Patch Set 5 : removed CHECKs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -0 lines) Patch
M chrome/browser/chrome_browser_field_trials.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_field_trials.cc View 1 2 3 4 2 chunks +33 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
pasko-google - do not use
7 years, 9 months ago (2013-03-15 05:40:49 UTC) #1
SteveT
Back to you with a few things and some questions. https://codereview.chromium.org/12684010/diff/1/chrome/browser/chrome_browser_field_trials.cc File chrome/browser/chrome_browser_field_trials.cc (right): https://codereview.chromium.org/12684010/diff/1/chrome/browser/chrome_browser_field_trials.cc#newcode62 ...
7 years, 9 months ago (2013-03-15 14:07:05 UTC) #2
pasko-google - do not use
https://codereview.chromium.org/12684010/diff/1/chrome/browser/chrome_browser_field_trials.cc File chrome/browser/chrome_browser_field_trials.cc (right): https://codereview.chromium.org/12684010/diff/1/chrome/browser/chrome_browser_field_trials.cc#newcode62 chrome/browser/chrome_browser_field_trials.cc:62: SetUpSimpleCacheFieldTrial(); On 2013/03/15 14:07:05, SteveT wrote: > We might ...
7 years, 9 months ago (2013-03-15 15:36:28 UTC) #3
SteveT
Okay, from the changes here and our offline chats, I have a general comment: I ...
7 years, 9 months ago (2013-03-15 15:55:42 UTC) #4
pasko-google - do not use
On 2013/03/15 15:55:42, SteveT wrote: > Okay, from the changes here and our offline chats, ...
7 years, 9 months ago (2013-03-15 17:19:13 UTC) #5
SteveT
Some comments inline. I feel a bit like using the field trial state to pass ...
7 years, 9 months ago (2013-03-15 17:32:49 UTC) #6
rvargas (doing something else)
https://codereview.chromium.org/12684010/diff/12001/chrome/browser/chrome_browser_field_trials.cc File chrome/browser/chrome_browser_field_trials.cc (right): https://codereview.chromium.org/12684010/diff/12001/chrome/browser/chrome_browser_field_trials.cc#newcode198 chrome/browser/chrome_browser_field_trials.cc:198: if (parsed_command_line_.HasSwitch(switches::kUseSimpleCacheBackend)) { It is much simpler to remove ...
7 years, 9 months ago (2013-03-15 18:20:15 UTC) #7
pasko-google - do not use
On 2013/03/15 17:32:49, SteveT wrote: > Some comments inline. Thanks for quick responses! > I ...
7 years, 9 months ago (2013-03-15 18:27:37 UTC) #8
pasko-google - do not use
Please take another look. https://codereview.chromium.org/12684010/diff/12001/chrome/browser/chrome_browser_field_trials.cc File chrome/browser/chrome_browser_field_trials.cc (right): https://codereview.chromium.org/12684010/diff/12001/chrome/browser/chrome_browser_field_trials.cc#newcode199 chrome/browser/chrome_browser_field_trials.cc:199: std::string opt_value = parsed_command_line_.GetSwitchValueASCII( On ...
7 years, 9 months ago (2013-03-15 18:27:52 UTC) #9
SteveT
One response to rvargas' comments. Also, I take back what I said about next Monday ...
7 years, 9 months ago (2013-03-15 18:30:41 UTC) #10
rvargas (doing something else)
> (1) You can't control it from about:flags, so it really has to be someone ...
7 years, 9 months ago (2013-03-15 18:50:12 UTC) #11
pasko-google - do not use
On 2013/03/15 18:20:15, rvargas wrote: > https://codereview.chromium.org/12684010/diff/12001/chrome/browser/chrome_browser_field_trials.cc > File chrome/browser/chrome_browser_field_trials.cc (right): > > https://codereview.chromium.org/12684010/diff/12001/chrome/browser/chrome_browser_field_trials.cc#newcode198 > ...
7 years, 9 months ago (2013-03-15 19:05:22 UTC) #12
pasko-google - do not use
https://codereview.chromium.org/12684010/diff/12001/chrome/browser/chrome_browser_field_trials.cc File chrome/browser/chrome_browser_field_trials.cc (right): https://codereview.chromium.org/12684010/diff/12001/chrome/browser/chrome_browser_field_trials.cc#newcode216 chrome/browser/chrome_browser_field_trials.cc:216: // TODO(pasko): Make this the default on Android when ...
7 years, 9 months ago (2013-03-15 19:05:30 UTC) #13
SteveT
On 2013/03/15 18:50:12, rvargas wrote: > > (1) You can't control it from about:flags, so ...
7 years, 9 months ago (2013-03-15 19:09:09 UTC) #14
rvargas (doing something else)
https://codereview.chromium.org/12684010/diff/12001/chrome/browser/chrome_browser_field_trials.cc File chrome/browser/chrome_browser_field_trials.cc (right): https://codereview.chromium.org/12684010/diff/12001/chrome/browser/chrome_browser_field_trials.cc#newcode223 chrome/browser/chrome_browser_field_trials.cc:223: CHECK(0) << "Only values (on|off|experiment) are supported for option ...
7 years, 9 months ago (2013-03-15 19:16:25 UTC) #15
gavinp
On 2013/03/15 18:50:12, rvargas wrote: > > (1) You can't control it from about:flags, so ...
7 years, 9 months ago (2013-03-15 19:28:22 UTC) #16
gavinp
On 2013/03/15 15:55:42, SteveT wrote: > Okay, from the changes here and our offline chats, ...
7 years, 9 months ago (2013-03-15 19:37:25 UTC) #17
rvargas (doing something else)
Disclaimer: I'm not pushing to eliminate the command line (anymore)... not having noise on other ...
7 years, 9 months ago (2013-03-15 21:19:37 UTC) #18
pasko-google - do not use
Steve, please take another look, made a few changes in CHECKs. I'm just watching the ...
7 years, 9 months ago (2013-03-15 21:30:57 UTC) #19
gavinp
On 2013/03/15 21:19:37, rvargas wrote: > Disclaimer: I'm not pushing to eliminate the command line ...
7 years, 9 months ago (2013-03-15 22:08:11 UTC) #20
rvargas (doing something else)
lgtm
7 years, 9 months ago (2013-03-15 22:30:25 UTC) #21
SteveT
lgtm - thanks! Can you include some TEST= instructions, please?
7 years, 9 months ago (2013-03-16 18:22:09 UTC) #22
pasko-google - do not use
On 2013/03/16 18:22:09, SteveT wrote: > lgtm - thanks! > > Can you include some ...
7 years, 9 months ago (2013-03-17 05:26:38 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pasko@google.com/12684010/33001
7 years, 9 months ago (2013-03-17 05:48:04 UTC) #24
commit-bot: I haz the power
7 years, 9 months ago (2013-03-17 10:29:22 UTC) #25
Message was sent while issue was closed.
Change committed as 188634

Powered by Google App Engine
This is Rietveld 408576698