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

Issue 1411453004: Componentize internal class FlagsState in flags_ui component. (Closed)

Created:
5 years, 1 month ago by sdefresne
Modified:
3 years, 10 months ago
CC:
achuith+watch_chromium.org, Bernhard Bauer, chromium-reviews, davemoore+watch_chromium.org, dzhioev+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@feature_entry
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Componentize internal class FlagsState in flags_ui component. Move FlagsState class definition to components/flags_ui so that it can be shared with iOS but leave the global FeatureEntry list definition in the embedder. Slightly change FlagsState interface to take the name of embedder specific switches (switches::kEnableFeatures, ...) and use dummy values for unit testing. Split the unit tests moving all those that have no dependency on the global FeatureEntry to flags_state_unittest.cc. Remove helper testing function that are no longer useful (overridding global state). BUG=551954 Committed: https://crrev.com/0e56634f4731afdbec1dbbd0a230c5a27f0296ec Cr-Commit-Position: refs/heads/master@{#361295}

Patch Set 1 #

Patch Set 2 : Fix build with gn #

Patch Set 3 : Fix build with gn and typo in gyp file #

Total comments: 4

Patch Set 4 : Address comments and rebase #

Patch Set 5 : Fix compilation on Win32 #

Total comments: 20

Patch Set 6 : Address comments by asvitkine #

Patch Set 7 : Address comments #

Patch Set 8 : Fix compilation on Windows #

Patch Set 9 : Fix compilation on Windows #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1687 lines, -1403 lines) Patch
M chrome/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/about_flags.h View 5 chunks +4 lines, -27 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 6 chunks +50 lines, -716 lines 0 comments Download
M chrome/browser/about_flags_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +13 lines, -637 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/session/user_session_manager.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/settings/owner_flags_storage.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/flags_ui.cc View 8 chunks +9 lines, -9 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_exe.gypi View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/common/crash_keys.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M components/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -0 lines 0 comments Download
M components/flags_ui.gypi View 1 2 3 4 5 1 chunk +44 lines, -1 line 0 comments Download
M components/flags_ui/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +29 lines, -0 lines 0 comments Download
A components/flags_ui/flags_state.h View 1 2 3 4 5 1 chunk +160 lines, -0 lines 0 comments Download
A components/flags_ui/flags_state.cc View 1 2 3 4 5 1 chunk +632 lines, -0 lines 0 comments Download
A components/flags_ui/flags_state_unittest.cc View 1 2 3 4 5 6 7 1 chunk +695 lines, -0 lines 0 comments Download
A components/flags_ui/flags_ui_switches.h View 1 chunk +15 lines, -0 lines 0 comments Download
A components/flags_ui/flags_ui_switches.cc View 1 chunk +15 lines, -0 lines 0 comments Download
M components/flags_ui_strings.grdp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 33 (9 generated)
sdefresne
Second step to componentize about_flags.{cc,h}. Here I componentize FlagsState and the corresponding unit tests. The ...
5 years, 1 month ago (2015-11-06 16:45:40 UTC) #2
sdefresne
+nkostylev@chromium.org: as OWNERS of chrome/browser/chromeos & chrome/browser/ui +sky@chromium.org: as OWNERS of the rest of chrome/browser, ...
5 years, 1 month ago (2015-11-06 17:51:19 UTC) #4
sky
thakis is the original author of about_flags, and he's an owner. So, sky->thakis
5 years, 1 month ago (2015-11-06 21:17:48 UTC) #6
Alexei Svitkine (slow)
Is there a way for to have the diff for the new files to look ...
5 years, 1 month ago (2015-11-06 21:22:28 UTC) #7
Alexei Svitkine (slow)
https://codereview.chromium.org/1411453004/diff/40001/components/flags_ui/flags_state.h File components/flags_ui/flags_state.h (right): https://codereview.chromium.org/1411453004/diff/40001/components/flags_ui/flags_state.h#newcode140 components/flags_ui/flags_state.h:140: int GetCurrentPlatform(); It's kind of weird to have free-standing ...
5 years, 1 month ago (2015-11-06 21:26:01 UTC) #8
sdefresne
PTAL https://codereview.chromium.org/1411453004/diff/40001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (left): https://codereview.chromium.org/1411453004/diff/40001/chrome/browser/about_flags.cc#oldcode2515 chrome/browser/about_flags.cc:2515: default: On 2015/11/06 at 21:22:28, Alexei Svitkine (slow) ...
5 years, 1 month ago (2015-11-12 11:37:25 UTC) #9
sdefresne
Please take a look.
5 years, 1 month ago (2015-11-16 20:53:17 UTC) #12
Nico
(my working hypothesis here is that this is waiting on asvitkine for the main review?)
5 years, 1 month ago (2015-11-16 21:20:08 UTC) #13
Alexei Svitkine (slow)
Woops, will take a look now.
5 years, 1 month ago (2015-11-16 21:21:20 UTC) #14
Alexei Svitkine (slow)
https://codereview.chromium.org/1411453004/diff/120001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/1411453004/diff/120001/chrome/browser/about_flags.cc#newcode2085 chrome/browser/about_flags.cc:2085: bool SkipConditionalFeatureEntry(version_info::Channel channel, Nit: Seems like it's not really ...
5 years, 1 month ago (2015-11-16 21:52:54 UTC) #15
sdefresne
Addressed comments, please take another look. https://codereview.chromium.org/1411453004/diff/120001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/1411453004/diff/120001/chrome/browser/about_flags.cc#newcode2085 chrome/browser/about_flags.cc:2085: bool SkipConditionalFeatureEntry(version_info::Channel channel, ...
5 years, 1 month ago (2015-11-17 16:28:57 UTC) #16
Alexei Svitkine (slow)
LGTM
5 years, 1 month ago (2015-11-17 16:46:48 UTC) #17
sdefresne
On 2015/11/17 at 16:46:48, asvitkine wrote: > LGTM Ping, nkostylev@: please review the following as ...
5 years, 1 month ago (2015-11-18 15:19:40 UTC) #18
sdefresne
ping?
5 years, 1 month ago (2015-11-19 11:53:48 UTC) #19
Nikita (slow)
On 2015/11/18 15:19:40, sdefresne wrote: > On 2015/11/17 at 16:46:48, asvitkine wrote: > > LGTM ...
5 years, 1 month ago (2015-11-19 12:19:42 UTC) #20
achuithb
On 2015/11/19 12:19:42, Nikita - not on CrOS anymore wrote: > On 2015/11/18 15:19:40, sdefresne ...
5 years, 1 month ago (2015-11-19 22:19:26 UTC) #21
sdefresne
thakis: ping
5 years, 1 month ago (2015-11-22 18:54:36 UTC) #22
Nico
lgtm
5 years, 1 month ago (2015-11-23 17:47:38 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1411453004/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1411453004/220001
5 years, 1 month ago (2015-11-23 17:53:20 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/132935)
5 years, 1 month ago (2015-11-23 21:26:51 UTC) #28
sdefresne
Failure looks like it is unrelated, sending back to CQ.
5 years, 1 month ago (2015-11-24 08:19:14 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1411453004/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1411453004/220001
5 years, 1 month ago (2015-11-24 08:20:42 UTC) #31
commit-bot: I haz the power
Committed patchset #10 (id:220001)
5 years, 1 month ago (2015-11-24 08:55:55 UTC) #32
commit-bot: I haz the power
5 years, 1 month ago (2015-11-24 08:56:44 UTC) #33
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/0e56634f4731afdbec1dbbd0a230c5a27f0296ec
Cr-Commit-Position: refs/heads/master@{#361295}

Powered by Google App Engine
This is Rietveld 408576698