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

Issue 2911303003: chromeos: Remove SystemTrayDelegate::GetIMEManagedMessage() (Closed)

Created:
3 years, 6 months ago by James Cook
Modified:
3 years, 6 months ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, sadrul, yusukes+watch_chromium.org, hidehiko+watch_chromium.org, oshima+watch_chromium.org, lhchavez+watch_chromium.org, victorhsieh+watch_chromium.org, kalyank, srahim+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

chromeos: Remove SystemTrayDelegate::GetIMEManagedMessage() For the mustash project we're eliminating ash-to-chrome delegates because ash will run in its own process. Instead of delegating back to chrome to look up a string, do the lookup directly in ash. Collapse the string with an existing page info string with almost-identical text. This saves a little binary size and allows the string to be used in both chromeos ash code and non-chromeos extensions webui code in chrome. BUG=724305 TEST=ash_unittests, manual tests of IME menus Review-Url: https://codereview.chromium.org/2911303003 Cr-Commit-Position: refs/heads/master@{#476314} Committed: https://chromium.googlesource.com/chromium/src/+/800af5e6c1c96ce81b21cc615cad3aa76d250136

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : collapse strings, fix test #

Patch Set 4 : delete page info string #

Patch Set 5 : don't collapse strings, just move #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -34 lines) Patch
M ash/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ash/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M ash/strings/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download
M ash/system/ime/tray_ime_chromeos.cc View 1 2 3 4 5 3 chunks +9 lines, -1 line 0 comments Download
M ash/system/ime_menu/ime_menu_tray_unittest.cc View 1 2 3 chunks +44 lines, -12 lines 0 comments Download
M ash/system/tray/system_tray_delegate.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ash/system/tray/system_tray_delegate.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_support_host.cc View 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/options/network_config_view.cc View 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.cc View 1 2 3 4 5 3 chunks +0 lines, -10 lines 0 comments Download
M chrome/browser/ui/webui/policy_indicator_localized_strings_provider.cc View 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/policy_strings.grdp View 3 4 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (20 generated)
James Cook
msw, please take a look.
3 years, 6 months ago (2017-05-30 21:00:29 UTC) #2
msw
You should definitely ping components/policy/OWNERS about the new home for the string; otherwise lgtm.
3 years, 6 months ago (2017-05-30 22:17:07 UTC) #3
James Cook
pastarmovj, can you take a look as a components/policy owner? I moved a string from ...
3 years, 6 months ago (2017-05-30 22:53:09 UTC) #7
pastarmovj
There is more or less the same string already defined as IDS_PAGE_INFO_PERMISSION_ASK_BY_POLICY here https://cs.chromium.org/chromium/src/components/page_info_strings.grdp?rcl=03e5b388cfbdd5636085d8e756fd88b11e5a990c&l=288 Is ...
3 years, 6 months ago (2017-05-31 08:45:26 UTC) #10
James Cook
pastarmovj, please take another look. The previous version of the CL didn't increase the size ...
3 years, 6 months ago (2017-05-31 15:22:55 UTC) #16
James Cook
On 2017/05/31 15:22:55, James Cook wrote: > pastarmovj, please take another look. The previous version ...
3 years, 6 months ago (2017-05-31 15:40:23 UTC) #17
pastarmovj
LGTM. Thanks!
3 years, 6 months ago (2017-05-31 16:34:42 UTC) #18
James Cook
stevenjb, can I get owners approval for chrome/browser/chromeos? blundell, can I get owners approval for ...
3 years, 6 months ago (2017-05-31 17:04:25 UTC) #22
stevenjb
c/b/chromeos lgtm
3 years, 6 months ago (2017-05-31 18:51:49 UTC) #23
blundell
DEPS on //components/strings lgtm
3 years, 6 months ago (2017-06-01 11:27:22 UTC) #26
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/2911303003/100001
3 years, 6 months ago (2017-06-01 14:37:44 UTC) #29
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://chromium.googlesource.com/chromium/src/+/800af5e6c1c96ce81b21cc615cad3aa76d250136
3 years, 6 months ago (2017-06-01 16:09:32 UTC) #32
James Cook
3 years, 6 months ago (2017-06-05 15:40:01 UTC) #33
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/2917423002/ by jamescook@chromium.org.

The reason for reverting is: I'm going to take a different approach to the IME
methods in the system tray delegate. There's a design doc linked from the bug.
.

Powered by Google App Engine
This is Rietveld 408576698