New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 787010 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Jan 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Task



Sign in to add a comment

Refactor constants in InterventionsInternalsPageHandler

Project Member Reported by thanhdle@chromium.org, Nov 20 2017

Issue description

There are a lot of constants in InterventionsInternalsPageHandler.

https://cs.chromium.org/chromium/src/chrome/browser/ui/webui/interventions_internals/interventions_internals_page_handler.cc?type=cs&sq=package:chromium&l=14

One way to organize them to have a struct which holds variables related to one preview or flag. Then, have a vector of these structs. That would make it easier to add new previews in future.
 

Comment 1 by efoo@chromium.org, Dec 5 2017

Components: Blink>Previews

Comment 2 by efoo@chromium.org, Dec 5 2017

Components: -UI>Browser>Previews
Refreshed during triage.
Status: WontFix (was: Assigned)
The component of flags are not all hard-coded constants. For example, flags descriptions are retrieved from about://flags.
https://cs.chromium.org/chromium/src/chrome/browser/ui/webui/interventions_internals/interventions_internals_page_handler.cc?type=cs&sq=package:chromium&l=241

Additionally, some flag feature names are also not hard-coded constants.
https://cs.chromium.org/chromium/src/chrome/browser/ui/webui/interventions_internals/interventions_internals_page_handler.cc?type=cs&sq=package:chromium&l=37

Unless more features/flags are added, or additional details/information about the flags are added, this is refactor is not necessary.

Sign in to add a comment