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 1188713007: Moved --top-chrome-md command line switch from chrome_switches to ui_base_switches. (Closed)

Created:
5 years, 6 months ago by bruthig
Modified:
5 years, 5 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, flackr
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Moved --top-chrome-md command line switch from chrome_switches to ui_base_switches. The switch needed to be accessible from ui/base/resources for loading the different assets. Also defined the ENABLE_TOPCHROME_MD compile time switch on linux builds. TEST=MaterialDesignControllerTest.NonMaterialModeWhenCompileTimeFlagDisabled TEST=MaterialDesignControllerTest.EnabledCommandLineValueMapsToMaterialModeWhenCompileTimeFlagEnabled TEST=MaterialDesignControllerTest.EnabledHybridCommandLineValueMapsToMaterialHybridModeWhenCompileTimeFlagEnabled TEST=MaterialDesignControllerTest.DisabledCommandLineValueMapsToNonMaterialModeWhenCompileTimeFlagEnabled TEST=MaterialDesignControllerTest.NoCommandLineValueMapsToNonMaterialModeWhenCompileTimeFlagEnabled TEST=MaterialDesignControllerTest.InvalidCommandLineValueFails BUG=501366 Committed: https://crrev.com/0d89d6ac4a77feaa44da9cb4abb456ca800981b4 Cr-Commit-Position: refs/heads/master@{#336442}

Patch Set 1 #

Total comments: 17

Patch Set 2 : Addressed comments from patch set 1. #

Patch Set 3 : Merged with master. #

Total comments: 6

Patch Set 4 : Moved material_design_controller to ui/base/resource/material_design/. #

Total comments: 6

Patch Set 5 : Fixed typo in build/config/BUILD.gn. #

Total comments: 1

Patch Set 6 : Minor nit fixes and reverted typo fix in build/config/BUILD.gn #

Patch Set 7 : Added LoginCustomFlags enum entry and removed UI_BASE_EXPORT from TestAPI. #

Patch Set 8 : Added guards to a death test so it is not run on a release build. #

Patch Set 9 : Removed 'typename' from typedef. #

Patch Set 10 : Removed typedef in unittest. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+372 lines, -18 lines) Patch
M build/common.gypi View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M build/config/ui.gni View 1 chunk +1 line, -1 line 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 1 chunk +11 lines, -2 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 2 chunks +12 lines, -2 lines 2 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, -6 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M ui/base/BUILD.gn View 1 2 3 3 chunks +19 lines, -0 lines 0 comments Download
A ui/base/resource/material_design/material_design_controller.h View 1 2 3 1 chunk +63 lines, -0 lines 0 comments Download
A ui/base/resource/material_design/material_design_controller.cc View 1 2 3 1 chunk +60 lines, -0 lines 0 comments Download
A ui/base/resource/material_design/material_design_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +114 lines, -0 lines 0 comments Download
A ui/base/test/material_design_controller_test_api.h View 1 2 3 4 5 6 1 chunk +28 lines, -0 lines 0 comments Download
A ui/base/test/material_design_controller_test_api.cc View 1 1 chunk +20 lines, -0 lines 0 comments Download
M ui/base/ui_base.gyp View 1 2 3 2 chunks +12 lines, -0 lines 0 comments Download
M ui/base/ui_base_switches.h View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M ui/base/ui_base_switches.cc View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
M ui/base/ui_base_tests.gyp View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 54 (19 generated)
bruthig
girard@, jonross@, tdanderson@: Can you guys take a look at the MaterialDesignController::GetLookAndFeel() function to make ...
5 years, 6 months ago (2015-06-18 19:47:26 UTC) #2
girard
On 2015/06/18 19:47:26, bruthig wrote: > girard@, jonross@, tdanderson@: > > Can you guys take ...
5 years, 6 months ago (2015-06-18 19:58:38 UTC) #3
flackr
https://codereview.chromium.org/1188713007/diff/1/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/1188713007/diff/1/chrome/browser/about_flags.cc#newcode431 chrome/browser/about_flags.cc:431: {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""}, Unless/until we make this an experiment ...
5 years, 6 months ago (2015-06-18 20:50:58 UTC) #4
tdanderson
Ben, please see my comments below. https://codereview.chromium.org/1188713007/diff/1/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1188713007/diff/1/build/common.gypi#newcode2 build/common.gypi:2: # Use of ...
5 years, 6 months ago (2015-06-18 20:54:24 UTC) #5
bruthig
Hey all, I've addressed all the comments from patch set 1. Can you please have ...
5 years, 6 months ago (2015-06-22 18:51:12 UTC) #6
jonross
On 2015/06/22 18:51:12, bruthig wrote: > Hey all, > > I've addressed all the comments ...
5 years, 6 months ago (2015-06-22 20:39:11 UTC) #7
tdanderson
lgtm with a grammar nit https://codereview.chromium.org/1188713007/diff/40001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1188713007/diff/40001/chrome/app/generated_resources.grd#newcode5685 chrome/app/generated_resources.grd:5685: + Set's the material ...
5 years, 6 months ago (2015-06-22 20:59:44 UTC) #8
bruthig
asvitkine@chromium.org: Please review changes in - histograms.xml cpu@chromium.org: Please review changes in - build/* - ...
5 years, 6 months ago (2015-06-22 21:05:56 UTC) #10
Alexei Svitkine (slow)
histograms lgtm
5 years, 6 months ago (2015-06-22 21:10:05 UTC) #11
cpu_(ooo_6.6-7.5)
please add an owner for /ui , the rest I can do.
5 years, 6 months ago (2015-06-23 00:53:11 UTC) #12
bruthig
sadrul@, can you please review: - ui/*
5 years, 6 months ago (2015-06-23 14:02:35 UTC) #14
cpu_(ooo_6.6-7.5)
lgtm for chrome/* and build/* https://codereview.chromium.org/1188713007/diff/40001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1188713007/diff/40001/chrome/app/generated_resources.grd#newcode5685 chrome/app/generated_resources.grd:5685: + Set's the material ...
5 years, 6 months ago (2015-06-23 17:41:42 UTC) #15
sadrul
A couple of questions about where material_design should live. It's fine where it is right ...
5 years, 6 months ago (2015-06-24 18:18:08 UTC) #16
jonross
https://codereview.chromium.org/1188713007/diff/40001/ui/base/material_design/material_design_controller.h File ui/base/material_design/material_design_controller.h (right): https://codereview.chromium.org/1188713007/diff/40001/ui/base/material_design/material_design_controller.h#newcode18 ui/base/material_design/material_design_controller.h:18: class UI_BASE_EXPORT MaterialDesignController { On 2015/06/24 18:18:08, sadrul wrote: ...
5 years, 6 months ago (2015-06-24 18:33:01 UTC) #17
bruthig
I've moved the MaterialDesignController to ui/base/resource/material_design/. sadrul@, can you have another look at - ui/* ...
5 years, 6 months ago (2015-06-24 21:36:24 UTC) #18
Dan Beam
https://codereview.chromium.org/1188713007/diff/60001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1188713007/diff/60001/chrome/app/generated_resources.grd#newcode5685 chrome/app/generated_resources.grd:5685: + Sets the material design elements in the browser's ...
5 years, 6 months ago (2015-06-24 21:55:10 UTC) #20
tdanderson
https://codereview.chromium.org/1188713007/diff/60001/ui/base/ui_base_switches.h File ui/base/ui_base_switches.h (right): https://codereview.chromium.org/1188713007/diff/60001/ui/base/ui_base_switches.h#newcode37 ui/base/ui_base_switches.h:37: UI_BASE_EXPORT extern const char kTopChromeMDNonMaterial[]; On 2015/06/24 21:55:10, Dan ...
5 years, 6 months ago (2015-06-25 16:48:48 UTC) #21
Dan Beam
https://codereview.chromium.org/1188713007/diff/60001/ui/base/ui_base_switches.h File ui/base/ui_base_switches.h (right): https://codereview.chromium.org/1188713007/diff/60001/ui/base/ui_base_switches.h#newcode37 ui/base/ui_base_switches.h:37: UI_BASE_EXPORT extern const char kTopChromeMDNonMaterial[]; On 2015/06/25 16:48:48, tdanderson ...
5 years, 6 months ago (2015-06-25 17:05:36 UTC) #22
bruthig
https://codereview.chromium.org/1188713007/diff/60001/ui/base/ui_base_switches.h File ui/base/ui_base_switches.h (right): https://codereview.chromium.org/1188713007/diff/60001/ui/base/ui_base_switches.h#newcode37 ui/base/ui_base_switches.h:37: UI_BASE_EXPORT extern const char kTopChromeMDNonMaterial[]; On 2015/06/25 17:05:35, Dan ...
5 years, 6 months ago (2015-06-25 17:49:49 UTC) #23
Dan Beam
https://codereview.chromium.org/1188713007/diff/60001/ui/base/ui_base_switches.h File ui/base/ui_base_switches.h (right): https://codereview.chromium.org/1188713007/diff/60001/ui/base/ui_base_switches.h#newcode37 ui/base/ui_base_switches.h:37: UI_BASE_EXPORT extern const char kTopChromeMDNonMaterial[]; On 2015/06/25 17:49:49, bruthig ...
5 years, 6 months ago (2015-06-25 18:11:43 UTC) #25
sadrul
lgtm
5 years, 6 months ago (2015-06-25 19:55:32 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1188713007/100001
5 years, 6 months ago (2015-06-25 20:13:21 UTC) #29
commit-bot: I haz the power
Exceeded global retry quota
5 years, 6 months ago (2015-06-25 21:03:45 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1188713007/120001
5 years, 6 months ago (2015-06-25 22:02:45 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/103501)
5 years, 6 months ago (2015-06-26 01:10:49 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1188713007/140001
5 years, 6 months ago (2015-06-26 14:40:40 UTC) #39
commit-bot: I haz the power
Exceeded global retry quota
5 years, 6 months ago (2015-06-26 15:15:53 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1188713007/160001
5 years, 6 months ago (2015-06-26 16:06:12 UTC) #44
commit-bot: I haz the power
Exceeded global retry quota
5 years, 6 months ago (2015-06-26 16:31:17 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1188713007/180001
5 years, 6 months ago (2015-06-26 17:39:11 UTC) #49
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 6 months ago (2015-06-26 19:37:58 UTC) #50
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/0d89d6ac4a77feaa44da9cb4abb456ca800981b4 Cr-Commit-Position: refs/heads/master@{#336442}
5 years, 6 months ago (2015-06-26 19:39:00 UTC) #51
bruthig
oshima@, I had to rework the death test to get it to work on windows. ...
5 years, 6 months ago (2015-06-26 19:42:11 UTC) #52
tdanderson
https://codereview.chromium.org/1188713007/diff/180001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/1188713007/diff/180001/chrome/browser/about_flags.cc#newcode810 chrome/browser/about_flags.cc:810: kOsWin | kOsCrOS, I just noticed you're missing Linux ...
5 years, 6 months ago (2015-06-26 21:38:23 UTC) #53
bruthig
5 years, 5 months ago (2015-06-29 14:18:57 UTC) #54
Message was sent while issue was closed.
https://codereview.chromium.org/1188713007/diff/180001/chrome/browser/about_f...
File chrome/browser/about_flags.cc (right):

https://codereview.chromium.org/1188713007/diff/180001/chrome/browser/about_f...
chrome/browser/about_flags.cc:810: kOsWin | kOsCrOS,
On 2015/06/26 21:38:23, tdanderson wrote:
> I just noticed you're missing Linux here. Mind adding that in a follow-up?

https://codereview.chromium.org/1219683003

Powered by Google App Engine
This is Rietveld 408576698