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

Issue 2537503002: [Prerender] Get the prerender mode from Finch field trial. (Closed)

Created:
4 years ago by droger
Modified:
4 years ago
CC:
chromium-reviews, tburkard+watch_chromium.org, gavinp+prer_chromium.org, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Prerender] Get the prerender mode from Finch field trial. This CL introduces a new NoStatePrefetch feature, controlled by Finch. The feature can be disabled, and then there is no prerender or prefetch happening. It can be enabled with 3 modes: - prerender (default for now) - prefetch - simple load. BUG=668997 TBR=pasko Committed: https://crrev.com/bbb4856e6fbdcb6a497afd1c136e005ccf6f371d Cr-Commit-Position: refs/heads/master@{#436932}

Patch Set 1 #

Patch Set 2 #

Patch Set 3 : Feature API #

Total comments: 18

Patch Set 4 : SetupOnMainThread #

Total comments: 2

Patch Set 5 : Remaining review comments #

Patch Set 6 : Update all browser tests #

Patch Set 7 : cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -103 lines) Patch
M chrome/browser/apps/app_url_redirector_browsertest.cc View 1 2 3 4 5 3 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/chrome_browser_field_trials.h View 1 2 3 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/chrome_browser_field_trials.cc View 1 2 2 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/chrome_browser_field_trials_desktop.h View 1 2 1 chunk +1 line, -7 lines 0 comments Download
M chrome/browser/chrome_browser_field_trials_desktop.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chrome_browser_field_trials_mobile.h View 1 2 1 chunk +1 line, -7 lines 0 comments Download
M chrome/browser/chrome_browser_field_trials_mobile.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/activity_log/activity_log_browsertest.cc View 1 2 3 4 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/prerender/prerender_browsertest.cc View 1 2 3 4 5 3 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/prerender/prerender_field_trial.h View 1 2 3 4 5 1 chunk +10 lines, -8 lines 0 comments Download
M chrome/browser/prerender/prerender_field_trial.cc View 1 2 3 4 5 6 1 chunk +23 lines, -15 lines 0 comments Download
M chrome/browser/prerender/prerender_nostate_prefetch_browsertest.cc View 1 2 3 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/prerender/prerender_unittest.cc View 1 2 3 4 5 3 chunks +50 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc View 1 2 3 4 5 2 chunks +3 lines, -8 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 1 chunk +0 lines, -16 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 56 (28 generated)
droger
4 years ago (2016-11-28 16:50:57 UTC) #2
pasko
Is it going towards having a Feature, as encouraged by UMA folks? The feature would ...
4 years ago (2016-11-29 10:51:14 UTC) #3
mattcary
On 2016/11/29 10:51:14, pasko wrote: > Is it going towards having a Feature, as encouraged ...
4 years ago (2016-11-29 11:50:39 UTC) #4
droger
On 2016/11/29 11:50:39, mattcary wrote: > On 2016/11/29 10:51:14, pasko wrote: > > Is it ...
4 years ago (2016-11-29 12:45:43 UTC) #7
droger
Looking more at docs and code I found maybe a couple ways to do it. ...
4 years ago (2016-11-29 13:58:13 UTC) #8
mattcary
On 2016/11/29 13:58:13, droger wrote: > Looking more at docs and code I found maybe ...
4 years ago (2016-11-29 23:00:03 UTC) #9
droger
Updated the CL to use the feature API. The feature is called "NoStatePrefetch", but I ...
4 years ago (2016-11-30 17:05:26 UTC) #14
droger
On 2016/11/30 17:05:26, droger wrote: > Updated the CL to use the feature API. > ...
4 years ago (2016-11-30 17:07:27 UTC) #15
droger
On 2016/11/30 17:07:27, droger wrote: > On 2016/11/30 17:05:26, droger wrote: > > Updated the ...
4 years ago (2016-11-30 17:09:09 UTC) #16
pasko
a few structural+testing suggestions, otherwise looks good, nice cleanup as well, thanks! toplevel: should we ...
4 years ago (2016-12-01 16:47:58 UTC) #19
droger
Thanks. https://codereview.chromium.org/2537503002/diff/80001/chrome/browser/extensions/activity_log/activity_log_browsertest.cc File chrome/browser/extensions/activity_log/activity_log_browsertest.cc (left): https://codereview.chromium.org/2537503002/diff/80001/chrome/browser/extensions/activity_log/activity_log_browsertest.cc#oldcode39 chrome/browser/extensions/activity_log/activity_log_browsertest.cc:39: command_line->AppendSwitchASCII(switches::kPrerenderMode, On 2016/12/01 16:47:58, pasko wrote: > if ...
4 years ago (2016-12-01 17:17:41 UTC) #20
pasko
only one answer, have to run to a meeting :) https://codereview.chromium.org/2537503002/diff/80001/chrome/browser/prerender/prerender_field_trial.cc File chrome/browser/prerender/prerender_field_trial.cc (right): https://codereview.chromium.org/2537503002/diff/80001/chrome/browser/prerender/prerender_field_trial.cc#newcode18 ...
4 years ago (2016-12-01 17:30:44 UTC) #22
droger
https://codereview.chromium.org/2537503002/diff/80001/chrome/browser/prerender/prerender_field_trial.cc File chrome/browser/prerender/prerender_field_trial.cc (right): https://codereview.chromium.org/2537503002/diff/80001/chrome/browser/prerender/prerender_field_trial.cc#newcode18 chrome/browser/prerender/prerender_field_trial.cc:18: base::FEATURE_ENABLED_BY_DEFAULT}; On 2016/12/01 17:30:44, pasko wrote: > On 2016/12/01 ...
4 years ago (2016-12-01 17:39:49 UTC) #23
droger
https://codereview.chromium.org/2537503002/diff/80001/chrome/browser/prerender/prerender_field_trial.cc File chrome/browser/prerender/prerender_field_trial.cc (right): https://codereview.chromium.org/2537503002/diff/80001/chrome/browser/prerender/prerender_field_trial.cc#newcode18 chrome/browser/prerender/prerender_field_trial.cc:18: base::FEATURE_ENABLED_BY_DEFAULT}; On 2016/12/01 17:39:49, droger wrote: > On 2016/12/01 ...
4 years ago (2016-12-01 17:48:27 UTC) #26
droger
https://codereview.chromium.org/2537503002/diff/80001/chrome/browser/prerender/prerender_field_trial.h File chrome/browser/prerender/prerender_field_trial.h (right): https://codereview.chromium.org/2537503002/diff/80001/chrome/browser/prerender/prerender_field_trial.h#newcode14 chrome/browser/prerender/prerender_field_trial.h:14: extern const base::Feature kNoStatePrefetchFeature; On 2016/12/01 17:17:40, droger wrote: ...
4 years ago (2016-12-02 16:51:23 UTC) #29
mattcary
lgtm https://codereview.chromium.org/2537503002/diff/100001/chrome/browser/prerender/prerender_field_trial.cc File chrome/browser/prerender/prerender_field_trial.cc (right): https://codereview.chromium.org/2537503002/diff/100001/chrome/browser/prerender/prerender_field_trial.cc#newcode27 chrome/browser/prerender/prerender_field_trial.cc:27: kNoStatePrefetchFeature, "mode"); Wouldn't we prefer "mode" and the ...
4 years ago (2016-12-05 14:07:14 UTC) #30
droger
pasko: Everything addressed, the only outstanding issue is the semantics of the Feature (what does ...
4 years ago (2016-12-05 14:48:27 UTC) #33
droger
https://codereview.chromium.org/2537503002/diff/100001/chrome/browser/prerender/prerender_field_trial.cc File chrome/browser/prerender/prerender_field_trial.cc (right): https://codereview.chromium.org/2537503002/diff/100001/chrome/browser/prerender/prerender_field_trial.cc#newcode27 chrome/browser/prerender/prerender_field_trial.cc:27: kNoStatePrefetchFeature, "mode"); On 2016/12/05 14:07:13, mattcary wrote: > Wouldn't ...
4 years ago (2016-12-05 15:05:51 UTC) #37
rkaplow
lgtm From the metrics side this lgtm
4 years ago (2016-12-05 18:27:08 UTC) #40
droger
TBR pasko, as per offline discussion. TBR jochen for simple changes in: - app_url_redirector_browsertest - ...
4 years ago (2016-12-07 12:50:53 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2537503002/180001
4 years ago (2016-12-07 12:53:52 UTC) #46
commit-bot: I haz the power
Committed patchset #7 (id:180001)
4 years ago (2016-12-07 13:36:10 UTC) #49
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/bbb4856e6fbdcb6a497afd1c136e005ccf6f371d Cr-Commit-Position: refs/heads/master@{#436932}
4 years ago (2016-12-07 13:38:03 UTC) #51
pasko
lgtm https://codereview.chromium.org/2537503002/diff/80001/chrome/browser/extensions/activity_log/activity_log_browsertest.cc File chrome/browser/extensions/activity_log/activity_log_browsertest.cc (left): https://codereview.chromium.org/2537503002/diff/80001/chrome/browser/extensions/activity_log/activity_log_browsertest.cc#oldcode39 chrome/browser/extensions/activity_log/activity_log_browsertest.cc:39: command_line->AppendSwitchASCII(switches::kPrerenderMode, On 2016/12/01 17:17:40, droger wrote: > On ...
4 years ago (2016-12-08 15:23:44 UTC) #52
droger
Thanks for the review. https://codereview.chromium.org/2537503002/diff/80001/chrome/browser/extensions/activity_log/activity_log_browsertest.cc File chrome/browser/extensions/activity_log/activity_log_browsertest.cc (left): https://codereview.chromium.org/2537503002/diff/80001/chrome/browser/extensions/activity_log/activity_log_browsertest.cc#oldcode39 chrome/browser/extensions/activity_log/activity_log_browsertest.cc:39: command_line->AppendSwitchASCII(switches::kPrerenderMode, On 2016/12/08 15:23:44, pasko ...
4 years ago (2016-12-08 15:47:30 UTC) #53
pasko
On 2016/12/08 15:47:30, droger wrote: > I think they would work, but I did not ...
4 years ago (2016-12-09 14:52:48 UTC) #54
pasko
On 2016/12/08 15:47:30, droger wrote: > I think they would work, but I did not ...
4 years ago (2016-12-09 14:52:49 UTC) #55
droger
4 years ago (2016-12-09 15:29:00 UTC) #56
Message was sent while issue was closed.
On 2016/12/09 14:52:49, pasko wrote:
> Thanks! Documentation would really help.

I added a section in the design document: "Manually setting the prefetch mode"
https://docs.google.com/document/d/16VCYGGWau483IMSxODpg5faZny1FJ6vNK2v-BuM5E...

Powered by Google App Engine
This is Rietveld 408576698