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

Issue 2692663002: Gut ash::MaterialDesignController, and remove the about:flags entry. (Closed)

Created:
3 years, 10 months ago by Evan Stade
Modified:
3 years, 10 months ago
CC:
chromium-reviews, sadrul, asvitkine+watch_chromium.org, jam, dcheng, darin-cc_chromium.org, oshima+watch_chromium.org, kalyank, srahim+watch_chromium.org, mohsen
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Gut ash::MaterialDesignController, and remove the about:flags entry. It's not removed completely because IsXXXMaterial() is still used in many places and serves as a good marker for code cleanup, but it no longer does anything useful. A bunch of tests are updated as well to remove parameterization. The amount of overlap with bug 685837 was not originally intended, but at a certain point it became easier to keep removing code than to carefully determine dependencies. BUG=690048, 685837 Review-Url: https://codereview.chromium.org/2692663002 Cr-Commit-Position: refs/heads/master@{#450531} Committed: https://chromium.googlesource.com/chromium/src/+/a23d6ceb29374e303c7bfd356c4455fde45ca208

Patch Set 1 #

Total comments: 12

Patch Set 2 : terry review #

Total comments: 2

Patch Set 3 : rebase again #

Patch Set 4 : yet another rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+339 lines, -1181 lines) Patch
M ash/BUILD.gn View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M ash/common/ash_switches.h View 1 chunk +0 lines, -4 lines 0 comments Download
M ash/common/ash_switches.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M ash/common/material_design/material_design_controller.h View 1 1 chunk +5 lines, -60 lines 0 comments Download
M ash/common/material_design/material_design_controller.cc View 1 chunk +6 lines, -81 lines 0 comments Download
D ash/common/material_design/material_design_controller_unittest.cc View 1 chunk +0 lines, -135 lines 0 comments Download
M ash/common/shelf/shelf_constants.cc View 1 2 chunks +3 lines, -5 lines 0 comments Download
M ash/common/system/chromeos/power/power_status_unittest.cc View 10 chunks +9 lines, -45 lines 0 comments Download
M ash/common/system/chromeos/power/power_status_view_unittest.cc View 4 chunks +5 lines, -40 lines 0 comments Download
M ash/common/system/date/system_info_default_view_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ash/common/system/tray/tray_constants.cc View 1 2 chunks +3 lines, -5 lines 0 comments Download
M ash/common/test/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
D ash/common/test/material_design_controller_test_api.h View 1 chunk +0 lines, -38 lines 0 comments Download
D ash/common/test/material_design_controller_test_api.cc View 1 chunk +0 lines, -46 lines 0 comments Download
M ash/common/wm/overview/window_selector_item.h View 1 2 chunks +0 lines, -7 lines 0 comments Download
M ash/common/wm/overview/window_selector_item.cc View 1 4 chunks +0 lines, -31 lines 0 comments Download
M ash/dip_unittest.cc View 4 chunks +7 lines, -18 lines 0 comments Download
M ash/display/display_manager_unittest.cc View 54 chunks +56 lines, -69 lines 0 comments Download
M ash/display/window_tree_host_manager_unittest.cc View 26 chunks +25 lines, -37 lines 0 comments Download
M ash/mus/test/wm_test_helper.cc View 1 2 3 2 chunks +0 lines, -4 lines 0 comments Download
M ash/mus/window_manager_application.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M ash/root_window_controller_unittest.cc View 16 chunks +18 lines, -29 lines 0 comments Download
M ash/screen_util_unittest.cc View 6 chunks +10 lines, -19 lines 0 comments Download
M ash/shelf/shelf_widget_unittest.cc View 1 2 3 9 chunks +25 lines, -48 lines 0 comments Download
M ash/shell/content/client/shell_browser_main_parts.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M ash/system/web_notification/web_notification_tray_unittest.cc View 14 chunks +12 lines, -76 lines 0 comments Download
M ash/test/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
D ash/test/ash_md_test_base.h View 1 chunk +0 lines, -43 lines 0 comments Download
D ash/test/ash_md_test_base.cc View 1 chunk +0 lines, -54 lines 0 comments Download
M ash/test/ash_test_base.h View 3 chunks +0 lines, -9 lines 0 comments Download
M ash/test/ash_test_base.cc View 2 chunks +2 lines, -5 lines 0 comments Download
M ash/test/ash_test_helper.h View 3 chunks +1 line, -8 lines 0 comments Download
M ash/test/ash_test_helper.cc View 4 chunks +1 line, -11 lines 0 comments Download
M ash/test/ash_test_helper_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ash/wm/drag_window_resizer_unittest.cc View 14 chunks +14 lines, -24 lines 0 comments Download
M ash/wm/window_positioner_unittest.cc View 11 chunks +12 lines, -24 lines 0 comments Download
M ash/wm/window_state_unittest.cc View 16 chunks +19 lines, -29 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer_unittest.cc View 1 2 64 chunks +66 lines, -76 lines 0 comments Download
M ash/wm/workspace_controller_unittest.cc View 38 chunks +38 lines, -47 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 2 chunks +0 lines, -14 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/test/base/browser_with_test_window_test.cc View 2 chunks +1 line, -3 lines 0 comments Download
M chrome/test/base/view_event_test_platform_part_chromeos.cc View 2 chunks +0 lines, -2 lines 0 comments Download

Messages

Total messages: 40 (26 generated)
Evan Stade
3 years, 10 months ago (2017-02-13 17:18:46 UTC) #7
tdanderson
LGTM. I agree it makes sense to rip out the test code in the same ...
3 years, 10 months ago (2017-02-13 17:36:29 UTC) #10
Evan Stade
(patch not updated) https://codereview.chromium.org/2692663002/diff/1/ash/common/shelf/shelf_constants.cc File ash/common/shelf/shelf_constants.cc (right): https://codereview.chromium.org/2692663002/diff/1/ash/common/shelf/shelf_constants.cc#newcode34 ash/common/shelf/shelf_constants.cc:34: // fixme On 2017/02/13 17:36:28, tdanderson ...
3 years, 10 months ago (2017-02-13 17:41:01 UTC) #11
varkha
https://codereview.chromium.org/2692663002/diff/1/ash/common/wm/overview/window_selector_item.cc File ash/common/wm/overview/window_selector_item.cc (right): https://codereview.chromium.org/2692663002/diff/1/ash/common/wm/overview/window_selector_item.cc#newcode676 ash/common/wm/overview/window_selector_item.cc:676: #if 0 On 2017/02/13 17:41:01, Evan Stade wrote: > ...
3 years, 10 months ago (2017-02-13 17:44:01 UTC) #12
Evan Stade
https://codereview.chromium.org/2692663002/diff/1/ash/common/wm/overview/window_selector_item.cc File ash/common/wm/overview/window_selector_item.cc (right): https://codereview.chromium.org/2692663002/diff/1/ash/common/wm/overview/window_selector_item.cc#newcode676 ash/common/wm/overview/window_selector_item.cc:676: #if 0 On 2017/02/13 17:44:01, varkha wrote: > On ...
3 years, 10 months ago (2017-02-13 17:52:24 UTC) #13
Evan Stade
https://codereview.chromium.org/2692663002/diff/1/ash/common/material_design/material_design_controller.h File ash/common/material_design/material_design_controller.h (right): https://codereview.chromium.org/2692663002/diff/1/ash/common/material_design/material_design_controller.h#newcode13 ash/common/material_design/material_design_controller.h:13: // TODO(estade): deprecated, remove: crbug.com/690048 On 2017/02/13 17:36:28, tdanderson ...
3 years, 10 months ago (2017-02-13 19:29:42 UTC) #16
Evan Stade
+owners, ptal derat: ash/ everything except common thakis: chrome/browser/chrome_browser_main.cc chrome/test/base/browser_with_test_window_test.cc chrome/test/base/view_event_test_platform_part_chromeos.cc
3 years, 10 months ago (2017-02-13 19:31:56 UTC) #20
Daniel Erat
lgtm https://codereview.chromium.org/2692663002/diff/20001/ash/wm/window_state_unittest.cc File ash/wm/window_state_unittest.cc (right): https://codereview.chromium.org/2692663002/diff/20001/ash/wm/window_state_unittest.cc#newcode329 ash/wm/window_state_unittest.cc:329: EXPECT_EQ(gfx::Rect(0, 0, 800, 552).ToString(), have to admit that ...
3 years, 10 months ago (2017-02-13 23:17:02 UTC) #23
Nico
lgtm
3 years, 10 months ago (2017-02-14 16:01:32 UTC) #28
Evan Stade
https://codereview.chromium.org/2692663002/diff/20001/ash/wm/window_state_unittest.cc File ash/wm/window_state_unittest.cc (right): https://codereview.chromium.org/2692663002/diff/20001/ash/wm/window_state_unittest.cc#newcode329 ash/wm/window_state_unittest.cc:329: EXPECT_EQ(gfx::Rect(0, 0, 800, 552).ToString(), On 2017/02/13 23:17:01, Daniel Erat ...
3 years, 10 months ago (2017-02-14 16:35:12 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2692663002/40001
3 years, 10 months ago (2017-02-14 16:35:32 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/363971)
3 years, 10 months ago (2017-02-14 16:45:15 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2692663002/60001
3 years, 10 months ago (2017-02-14 22:55:09 UTC) #37
commit-bot: I haz the power
3 years, 10 months ago (2017-02-15 00:47:59 UTC) #40
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/a23d6ceb29374e303c7bfd356c44...

Powered by Google App Engine
This is Rietveld 408576698