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

Issue 1413633003: Consolidate some about flags code into FlagsState class. (Closed)

Created:
5 years, 2 months ago by Alexei Svitkine (slow)
Modified:
5 years, 2 months ago
Reviewers:
Nico
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Consolidate some about_flags code into FlagsState class. This moves the previously file-global variables g_entries and g_num_entries into the FlagsState class as member variables and renames them. Also changes a few free-standing functions that use those variables to be member functions on the FlagsState class. This refactoring paves way for extracting the FlagsState class into its own file that can be more easily componentized, which can be done in a later CL. My other planned change is to expand the functionality in this class to integrate with base::FeatureList and this refactoring makes the CL for that easier to review. BUG=544158 Committed: https://crrev.com/91931d560ef0b15847f12613d50ac97aa1877056 Cr-Commit-Position: refs/heads/master@{#354544}

Patch Set 1 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -41 lines) Patch
M chrome/browser/about_flags.cc View 13 chunks +78 lines, -41 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
Alexei Svitkine (slow)
5 years, 2 months ago (2015-10-16 15:51:58 UTC) #3
Nico
this change lgtm For the linked BUG=: How will this work if a FeatureList flag ...
5 years, 2 months ago (2015-10-16 16:36:12 UTC) #4
Alexei Svitkine (slow)
The idea is not to have dedicated --enable-foo and --enable-bar flags for base::FeatureList entries, since ...
5 years, 2 months ago (2015-10-16 16:38:29 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1413633003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1413633003/20001
5 years, 2 months ago (2015-10-16 16:38:43 UTC) #7
Nico
makes sense, thanks
5 years, 2 months ago (2015-10-16 16:40:05 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:20001)
5 years, 2 months ago (2015-10-16 17:55:54 UTC) #9
commit-bot: I haz the power
5 years, 2 months ago (2015-10-16 17:56:50 UTC) #10
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/91931d560ef0b15847f12613d50ac97aa1877056
Cr-Commit-Position: refs/heads/master@{#354544}

Powered by Google App Engine
This is Rietveld 408576698