Moved --top-chrome-md command line switch from chrome_switches to ui_base_switches.
commit0d89d6ac4a77feaa44da9cb4abb456ca800981b4
authorbruthig <bruthig@chromium.org>
Fri, 26 Jun 2015 19:37:49 +0000 (26 12:37 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 26 Jun 2015 19:38:28 +0000 (26 19:38 +0000)
tree6afe2fb3aa328b06407906dd10c7dc3f8f7eb174
parent389da2e28a6e675da59bdb5fb492cbba77df9874
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

Review URL: https://codereview.chromium.org/1188713007

Cr-Commit-Position: refs/heads/master@{#336442}
17 files changed:
build/common.gypi
build/config/ui.gni
chrome/app/generated_resources.grd
chrome/browser/about_flags.cc
chrome/common/chrome_switches.cc
chrome/common/chrome_switches.h
tools/metrics/histograms/histograms.xml
ui/base/BUILD.gn
ui/base/resource/material_design/material_design_controller.cc [new file with mode: 0644]
ui/base/resource/material_design/material_design_controller.h [new file with mode: 0644]
ui/base/resource/material_design/material_design_controller_unittest.cc [new file with mode: 0644]
ui/base/test/material_design_controller_test_api.cc [new file with mode: 0644]
ui/base/test/material_design_controller_test_api.h [new file with mode: 0644]
ui/base/ui_base.gyp
ui/base/ui_base_switches.cc
ui/base/ui_base_switches.h
ui/base/ui_base_tests.gyp