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

Issue 2395523002: chromeos: Refactor system tray "show settings" commands to use mojo (Closed)

Created:
4 years, 2 months ago by James Cook
Modified:
4 years, 2 months ago
Reviewers:
msw
CC:
chromium-reviews, dtseng+watch_chromium.org, sadrul, yusukes+watch_chromium.org, aboxhall+watch_chromium.org, nektar+watch_chromium.org, shuchen+watch_chromium.org, yuzo+watch_chromium.org, nona+watch_chromium.org, je_julie, dmazzoni+watch_chromium.org, oshima+watch_chromium.org, kalyank, stevenjb+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

chromeos: Refactor system tray "show settings" commands to use mojo Change the pattern of delegation to chrome to use mojom::SystemTrayClient. This is more consistent with how we want to handle ash delegates going forward. It eliminates a couple layers of indirection. * Add wrapper methods to SystemTrayController in ash * Remove Show* methods from SystemTrayDelegate in ash * Delete SystemTrayCommon in chrome, move code to SystemTrayClient Also delete unused tray_display.cc, left over from another cleanup CL https://codereview.chromium.org/2217713002 BUG=647412 TEST=existing browser_tests, manually verifying system tray help and settings buttons open web UI in chrome Committed: https://crrev.com/4dd7585b13a7fc40276b36efd33e85177aa45ebb Cr-Commit-Position: refs/heads/master@{#422857}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -834 lines) Patch
M ash/common/system/chromeos/ime_menu/ime_menu_tray.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/common/system/chromeos/network/network_state_list_detailed_view.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ash/common/system/chromeos/palette/palette_tray.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M ash/common/system/chromeos/power/dual_role_notification.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/common/system/chromeos/settings/tray_settings.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ash/common/system/chromeos/tray_tracing.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/common/system/date/date_default_view.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ash/common/system/ime/tray_ime_chromeos.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ash/common/system/tray/system_tray_controller.h View 1 chunk +14 lines, -1 line 0 comments Download
M ash/common/system/tray/system_tray_controller.cc View 1 chunk +60 lines, -0 lines 0 comments Download
M ash/common/system/tray/system_tray_delegate.h View 3 chunks +0 lines, -36 lines 0 comments Download
M ash/common/system/tray/system_tray_delegate.cc View 3 chunks +0 lines, -24 lines 0 comments Download
M ash/common/system/tray_accessibility.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M ash/common/system/user/user_card_view.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ash/system/chromeos/screen_layout_observer.cc View 2 chunks +2 lines, -1 line 0 comments Download
D ash/system/chromeos/tray_display.cc View 1 chunk +0 lines, -482 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_client.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_client.cc View 2 chunks +67 lines, -14 lines 2 comments Download
D chrome/browser/ui/ash/system_tray_common.h View 1 chunk +0 lines, -63 lines 0 comments Download
D chrome/browser/ui/ash/system_tray_common.cc View 1 chunk +0 lines, -129 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.h View 2 chunks +0 lines, -12 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.cc View 6 chunks +6 lines, -54 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
James Cook
msw, please take a look
4 years, 2 months ago (2016-10-04 17:07:29 UTC) #3
msw
lgtm with a nit https://codereview.chromium.org/2395523002/diff/1/chrome/browser/ui/ash/system_tray_client.cc File chrome/browser/ui/ash/system_tray_client.cc (right): https://codereview.chromium.org/2395523002/diff/1/chrome/browser/ui/ash/system_tray_client.cc#newcode20 chrome/browser/ui/ash/system_tray_client.cc:20: #include "chrome/common/url_constants.h" nit: remove if ...
4 years, 2 months ago (2016-10-04 17:29:00 UTC) #5
James Cook
https://codereview.chromium.org/2395523002/diff/1/chrome/browser/ui/ash/system_tray_client.cc File chrome/browser/ui/ash/system_tray_client.cc (right): https://codereview.chromium.org/2395523002/diff/1/chrome/browser/ui/ash/system_tray_client.cc#newcode20 chrome/browser/ui/ash/system_tray_client.cc:20: #include "chrome/common/url_constants.h" On 2016/10/04 17:29:00, msw wrote: > nit: ...
4 years, 2 months ago (2016-10-04 17:54:11 UTC) #6
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/2395523002/1
4 years, 2 months ago (2016-10-04 17:54:54 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-04 18:06:00 UTC) #10
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 18:10:02 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/4dd7585b13a7fc40276b36efd33e85177aa45ebb
Cr-Commit-Position: refs/heads/master@{#422857}

Powered by Google App Engine
This is Rietveld 408576698