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

Issue 2806263005: Convert the overlay scrollbar flag to use FeatureList (Closed)

Created:
3 years, 8 months ago by chaopeng
Modified:
3 years, 8 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, vakh+watch_chromium.org, piman+watch_chromium.org, rouslan+autofill_chromium.org, rogerm+autofillwatch_chromium.org, sebsg+autofillwatch_chromium.org, nasko+codewatch_chromium.org, jam, timvolodine, mathp+autofillwatch_chromium.org, blink-reviews, darin-cc_chromium.org, asvitkine+watch_chromium.org, grt+watch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert the overlay scrollbar flag to use FeatureList Current implementation uses an old-styled field trial flag. To make server side configurations and client side flag handling easy and clear, convert the field trial flag to use FeatureList. BUG=710060 Review-Url: https://codereview.chromium.org/2806263005 Cr-Original-Commit-Position: refs/heads/master@{#465867} Committed: https://chromium.googlesource.com/chromium/src/+/f8b7dc953a79f8565fde8cd22642b000a236d5a5 Review-Url: https://codereview.chromium.org/2806263005 Cr-Commit-Position: refs/heads/master@{#466032} Committed: https://chromium.googlesource.com/chromium/src/+/d3ca34febe2838703bfd71217be83fb26e372257

Patch Set 1 : Convert the overlay scrollbar flag to use FeatureList #

Patch Set 2 : remove overlay scrollbar switch in SitePerProcessBrowserTest #

Patch Set 3 : fix for android and SitePerProcessBrowserTest #

Patch Set 4 : update histograms.xml #

Total comments: 7

Patch Set 5 : add disable overlay scrollbar back to site_per_process_browsertest.cc #

Total comments: 6

Patch Set 6 : dtapuska comment addressed and fix SitePerProcessBrowserTest #

Patch Set 7 : rebase update #

Patch Set 8 : dtapuska comment addressed #

Total comments: 6

Patch Set 9 : dgozman and pkasting comments addressed #

Patch Set 10 : add test for scoped_feature_list #

Total comments: 9

Patch Set 11 : dcheng comment addressed #

Total comments: 3

Patch Set 12 : dcheng comment#58 addressed #

Patch Set 13 : for try bot #

Patch Set 14 : remove ScopedFeatureList change #

Total comments: 2

Patch Set 15 : Ilya comments addressed #

Patch Set 16 : move feature_list_ change to SetUpCommandLine #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -90 lines) Patch
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/renderer/autofill/form_classifier_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/safe_browsing/phishing_dom_feature_extractor_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/safe_browsing/threat_dom_details_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/android/content_startup_flags.cc View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +1 line, -3 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M content/browser/site_per_process_browsertest.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +4 lines, -3 lines 0 comments Download
M content/child/runtime_features.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/VirtualTestSuites View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -0 lines 0 comments Download
M ui/native_theme/BUILD.gn View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/native_theme/native_theme_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
A + ui/native_theme/native_theme_features.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +7 lines, -7 lines 0 comments Download
A ui/native_theme/native_theme_features.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +31 lines, -0 lines 0 comments Download
D ui/native_theme/native_theme_switches.h View 1 chunk +0 lines, -25 lines 0 comments Download
D ui/native_theme/native_theme_switches.cc View 1 chunk +0 lines, -34 lines 0 comments Download

Messages

Total messages: 103 (63 generated)
chaopeng
dtapuska@ Do I need to change Histograms.xml?
3 years, 8 months ago (2017-04-11 03:49:48 UTC) #4
bokan
https://codereview.chromium.org/2806263005/diff/80001/content/browser/site_per_process_browsertest.cc File content/browser/site_per_process_browsertest.cc (right): https://codereview.chromium.org/2806263005/diff/80001/content/browser/site_per_process_browsertest.cc#newcode621 content/browser/site_per_process_browsertest.cc:621: } I added that to disable overlays in a ...
3 years, 8 months ago (2017-04-11 19:11:42 UTC) #21
chaopeng
https://codereview.chromium.org/2806263005/diff/80001/content/browser/site_per_process_browsertest.cc File content/browser/site_per_process_browsertest.cc (right): https://codereview.chromium.org/2806263005/diff/80001/content/browser/site_per_process_browsertest.cc#newcode621 content/browser/site_per_process_browsertest.cc:621: } On 2017/04/11 19:11:42, bokan wrote: > I added ...
3 years, 8 months ago (2017-04-11 19:16:48 UTC) #22
bokan
https://codereview.chromium.org/2806263005/diff/80001/ui/native_theme/native_theme_features.cc File ui/native_theme/native_theme_features.cc (right): https://codereview.chromium.org/2806263005/diff/80001/ui/native_theme/native_theme_features.cc#newcode12 ui/native_theme/native_theme_features.cc:12: #if defined(OS_ANDROID) On 2017/04/11 19:16:48, chaopeng wrote: > On ...
3 years, 8 months ago (2017-04-11 19:26:31 UTC) #23
chaopeng
PTAL. Thank you. https://codereview.chromium.org/2806263005/diff/80001/content/browser/site_per_process_browsertest.cc File content/browser/site_per_process_browsertest.cc (right): https://codereview.chromium.org/2806263005/diff/80001/content/browser/site_per_process_browsertest.cc#newcode621 content/browser/site_per_process_browsertest.cc:621: } On 2017/04/11 19:11:42, bokan wrote: ...
3 years, 8 months ago (2017-04-11 20:27:33 UTC) #26
dtapuska
https://codereview.chromium.org/2806263005/diff/100001/content/browser/site_per_process_browsertest.cc File content/browser/site_per_process_browsertest.cc (right): https://codereview.chromium.org/2806263005/diff/100001/content/browser/site_per_process_browsertest.cc#newcode635 content/browser/site_per_process_browsertest.cc:635: disabled_features += "," + std::string(features::kOverlayScrollbar.name); How do you know ...
3 years, 8 months ago (2017-04-12 17:21:03 UTC) #31
chaopeng
Updated. PTAL. Thank you. https://codereview.chromium.org/2806263005/diff/100001/content/browser/site_per_process_browsertest.cc File content/browser/site_per_process_browsertest.cc (right): https://codereview.chromium.org/2806263005/diff/100001/content/browser/site_per_process_browsertest.cc#newcode635 content/browser/site_per_process_browsertest.cc:635: disabled_features += "," + std::string(features::kOverlayScrollbar.name); ...
3 years, 8 months ago (2017-04-12 20:23:15 UTC) #32
bokan
lgtm from me but please wait for Dave's review as I don't know about FeatureList.
3 years, 8 months ago (2017-04-12 21:01:08 UTC) #33
dtapuska
On 2017/04/12 21:01:08, bokan wrote: > lgtm from me but please wait for Dave's review ...
3 years, 8 months ago (2017-04-13 15:00:34 UTC) #42
chaopeng
ericwilligers@chromium.org: Please review changes in histograms.xml LoginCustomFlags added. mathp@chromium.org: Please review changes in chrome/renderer/autofill/form_classifier_browsertest.cc It ...
3 years, 8 months ago (2017-04-13 15:28:31 UTC) #44
chaopeng
isherman@ PTAL at histograms.xml
3 years, 8 months ago (2017-04-13 15:41:59 UTC) #46
dgozman
https://codereview.chromium.org/2806263005/diff/160001/content/browser/site_per_process_browsertest.cc File content/browser/site_per_process_browsertest.cc (right): https://codereview.chromium.org/2806263005/diff/160001/content/browser/site_per_process_browsertest.cc#newcode644 content/browser/site_per_process_browsertest.cc:644: feature_list_.InitFromCommandLine(enabled_features, disabled_features); Let's add a method similar to ScopedFeatureList::InitWithFeatures: ...
3 years, 8 months ago (2017-04-13 17:33:29 UTC) #47
mattm
safe_browsing lgtm
3 years, 8 months ago (2017-04-13 18:09:13 UTC) #48
Peter Kasting
LGTM https://codereview.chromium.org/2806263005/diff/160001/ui/native_theme/native_theme_features.cc File ui/native_theme/native_theme_features.cc (right): https://codereview.chromium.org/2806263005/diff/160001/ui/native_theme/native_theme_features.cc#newcode10 ui/native_theme/native_theme_features.cc:10: const base::FeatureState kOverlayScrollbarFeatureState = Nit: Prefer constexpr to ...
3 years, 8 months ago (2017-04-13 18:28:15 UTC) #49
chaopeng
dgozman@ Updated, PTAL. Thank you. https://codereview.chromium.org/2806263005/diff/160001/content/browser/site_per_process_browsertest.cc File content/browser/site_per_process_browsertest.cc (right): https://codereview.chromium.org/2806263005/diff/160001/content/browser/site_per_process_browsertest.cc#newcode644 content/browser/site_per_process_browsertest.cc:644: feature_list_.InitFromCommandLine(enabled_features, disabled_features); On 2017/04/13 ...
3 years, 8 months ago (2017-04-13 19:45:32 UTC) #50
dgozman
Thank you. lgtm
3 years, 8 months ago (2017-04-13 20:06:17 UTC) #51
Ilya Sherman
histograms.xml lgtm
3 years, 8 months ago (2017-04-13 21:03:47 UTC) #52
chaopeng
dcheng@chromium.org: Please review changes in base/ Thank you.
3 years, 8 months ago (2017-04-14 01:27:07 UTC) #54
dcheng
I'm also trying to understand the overall purpose of the new test helper: why isn't ...
3 years, 8 months ago (2017-04-14 23:30:17 UTC) #55
chaopeng
> I'm also trying to understand the overall purpose of the new test helper: why ...
3 years, 8 months ago (2017-04-15 00:12:54 UTC) #56
Mathieu
autofill lgtm
3 years, 8 months ago (2017-04-17 02:20:08 UTC) #57
dcheng
On 2017/04/15 00:12:54, chaopeng wrote: > > I'm also trying to understand the overall purpose ...
3 years, 8 months ago (2017-04-18 00:18:05 UTC) #58
chaopeng
isherman@ PTAL at feature_list
3 years, 8 months ago (2017-04-18 15:49:59 UTC) #59
dcheng
https://codereview.chromium.org/2806263005/diff/220001/base/test/scoped_feature_list.cc File base/test/scoped_feature_list.cc (right): https://codereview.chromium.org/2806263005/diff/220001/base/test/scoped_feature_list.cc#newcode131 base/test/scoped_feature_list.cc:131: } On 2017/04/18 00:18:05, dcheng (OOO through May 2) ...
3 years, 8 months ago (2017-04-18 15:54:57 UTC) #60
chaopeng
On 2017/04/18 15:54:57, dcheng (OOO through May 2) wrote: > https://codereview.chromium.org/2806263005/diff/220001/base/test/scoped_feature_list.cc > File base/test/scoped_feature_list.cc (right): ...
3 years, 8 months ago (2017-04-18 15:58:31 UTC) #61
dcheng
On 2017/04/18 15:58:31, chaopeng wrote: > On 2017/04/18 15:54:57, dcheng (OOO through May 2) wrote: ...
3 years, 8 months ago (2017-04-18 16:01:45 UTC) #62
Ilya Sherman
On 2017/04/15 00:12:54, chaopeng wrote: > > I'm also trying to understand the overall purpose ...
3 years, 8 months ago (2017-04-18 22:56:38 UTC) #63
chaopeng
On 2017/04/18 22:56:38, Ilya Sherman wrote: > On 2017/04/15 00:12:54, chaopeng wrote: > > > ...
3 years, 8 months ago (2017-04-18 23:29:54 UTC) #64
Ilya Sherman
On 2017/04/18 23:29:54, chaopeng wrote: > On 2017/04/18 22:56:38, Ilya Sherman wrote: > > On ...
3 years, 8 months ago (2017-04-19 00:21:39 UTC) #65
chaopeng
On 2017/04/19 00:21:39, Ilya Sherman wrote: > On 2017/04/18 23:29:54, chaopeng wrote: > > On ...
3 years, 8 months ago (2017-04-19 02:43:08 UTC) #66
Ilya Sherman
On 2017/04/19 02:43:08, chaopeng wrote: > On 2017/04/19 00:21:39, Ilya Sherman wrote: > > On ...
3 years, 8 months ago (2017-04-19 05:55:02 UTC) #67
bokan
On 2017/04/19 05:55:02, Ilya Sherman wrote: > I agree, and I'll reiterate: This is true ...
3 years, 8 months ago (2017-04-19 14:49:38 UTC) #68
Ilya Sherman
On 2017/04/19 14:49:38, bokan wrote: > On 2017/04/19 05:55:02, Ilya Sherman wrote: > > I ...
3 years, 8 months ago (2017-04-19 18:52:42 UTC) #81
Ilya Sherman
native_theme_features.* lgtm https://codereview.chromium.org/2806263005/diff/320001/ui/native_theme/native_theme_features.cc File ui/native_theme/native_theme_features.cc (right): https://codereview.chromium.org/2806263005/diff/320001/ui/native_theme/native_theme_features.cc#newcode1 ui/native_theme/native_theme_features.cc:1: // Copyright 2014 The Chromium Authors. All ...
3 years, 8 months ago (2017-04-19 21:42:30 UTC) #86
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/2806263005/340001
3 years, 8 months ago (2017-04-20 00:40:02 UTC) #91
dcheng
On 2017/04/19 14:49:38, bokan wrote: > On 2017/04/19 05:55:02, Ilya Sherman wrote: > > I ...
3 years, 8 months ago (2017-04-20 00:42:45 UTC) #92
commit-bot: I haz the power
Committed patchset #15 (id:340001) as https://chromium.googlesource.com/chromium/src/+/f8b7dc953a79f8565fde8cd22642b000a236d5a5
3 years, 8 months ago (2017-04-20 02:23:59 UTC) #95
aboxhall
On 2017/04/20 02:23:59, commit-bot: I haz the power wrote: > Committed patchset #15 (id:340001) as ...
3 years, 8 months ago (2017-04-20 03:54:23 UTC) #96
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/2806263005/360001
3 years, 8 months ago (2017-04-20 14:29:45 UTC) #100
commit-bot: I haz the power
3 years, 8 months ago (2017-04-20 17:11:43 UTC) #103
Message was sent while issue was closed.
Committed patchset #16 (id:360001) as
https://chromium.googlesource.com/chromium/src/+/d3ca34febe2838703bfd71217be8...

Powered by Google App Engine
This is Rietveld 408576698