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

Issue 2420753002: ash: Use mojo LocaleNotificationController interface. (Closed)

Created:
4 years, 2 months ago by Elliot Glaysher
Modified:
4 years, 2 months ago
Reviewers:
Tom Sepez, msw, sky
CC:
chromium-reviews, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, oshima+watch_chromium.org, kalyank, darin (slow to review), davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ash: Use mojo LocaleNotificationController interface. This removes a direct coupling between chrome/ and ash/common/. This also does cleanup on the ash side where the controller was the only member of an observer interface, which was superfluous. BUG=656783 Committed: https://crrev.com/cf3c339b9bc6b61a00d354d3857c7de9a7dd65aa Cr-Commit-Position: refs/heads/master@{#426040}

Patch Set 1 #

Patch Set 2 : don't understand why this compiled locally #

Patch Set 3 : actually add the mojom file to the patch #

Patch Set 4 : Remove dead code + cl lint #

Total comments: 6

Patch Set 5 : comments #

Patch Set 6 : Fixes #

Total comments: 8

Patch Set 7 : msw nits #

Total comments: 2

Patch Set 8 : nit #

Total comments: 2

Patch Set 9 : Uniquify callbacks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -137 lines) Patch
M ash/BUILD.gn View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M ash/common/mojo_interface_factory.cc View 1 2 3 4 5 3 chunks +12 lines, -0 lines 0 comments Download
M ash/common/system/locale/locale_notification_controller.h View 1 2 3 4 1 chunk +15 lines, -6 lines 0 comments Download
M ash/common/system/locale/locale_notification_controller.cc View 1 2 3 4 5 6 7 8 5 chunks +36 lines, -21 lines 0 comments Download
D ash/common/system/locale/locale_observer.h View 1 chunk +0 lines, -34 lines 0 comments Download
M ash/common/system/tray/system_tray_notifier.h View 3 chunks +0 lines, -10 lines 0 comments Download
M ash/common/system/tray/system_tray_notifier.cc View 1 2 3 4 5 1 chunk +0 lines, -16 lines 0 comments Download
M ash/common/wm_shell.h View 1 2 3 4 5 3 chunks +6 lines, -0 lines 0 comments Download
M ash/common/wm_shell.cc View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M ash/mus/manifest.json View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ash/public/interfaces/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A ash/public/interfaces/locale.mojom View 1 2 3 4 5 6 7 1 chunk +21 lines, -0 lines 0 comments Download
M ash/shell.h View 2 chunks +0 lines, -2 lines 0 comments Download
M ash/shell.cc View 3 chunks +0 lines, -5 lines 0 comments Download
M chrome/app/chromeos_strings.grdp View 1 2 3 4 2 chunks +0 lines, -11 lines 0 comments Download
M chrome/browser/chrome_content_browser_manifest_overlay.json View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/locale_change_guard.h View 1 2 3 5 chunks +11 lines, -12 lines 0 comments Download
M chrome/browser/chromeos/locale_change_guard.cc View 1 2 3 4 5 6 5 chunks +37 lines, -19 lines 0 comments Download

Messages

Total messages: 56 (40 generated)
Elliot Glaysher
4 years, 2 months ago (2016-10-13 22:42:08 UTC) #15
Elliot Glaysher
4 years, 2 months ago (2016-10-13 22:42:08 UTC) #16
msw
Nice, just minor comments. https://codereview.chromium.org/2420753002/diff/60001/ash/common/system/locale/locale_notification_controller.h File ash/common/system/locale/locale_notification_controller.h (right): https://codereview.chromium.org/2420753002/diff/60001/ash/common/system/locale/locale_notification_controller.h#newcode23 ash/common/system/locale/locale_notification_controller.h:23: void BindRequest(mojom::LocaleNotificationControllerRequest request); nit: comment ...
4 years, 2 months ago (2016-10-14 01:46:29 UTC) #19
Elliot Glaysher
ptal I couldn't get this dialog to reproduce naturally on a device without the patch; ...
4 years, 2 months ago (2016-10-17 21:00:46 UTC) #27
msw
lgtm with nits. I would appreciated it if you replied to my CL comments; using ...
4 years, 2 months ago (2016-10-17 22:19:34 UTC) #30
Elliot Glaysher
+tsepez for mojom changes https://codereview.chromium.org/2420753002/diff/100001/ash/public/interfaces/locale.mojom File ash/public/interfaces/locale.mojom (right): https://codereview.chromium.org/2420753002/diff/100001/ash/public/interfaces/locale.mojom#newcode7 ash/public/interfaces/locale.mojom:7: enum LocaleNotificationResult { On 2016/10/17 ...
4 years, 2 months ago (2016-10-17 22:37:17 UTC) #34
Tom Sepez
mojom LGTM https://codereview.chromium.org/2420753002/diff/120001/ash/public/interfaces/locale.mojom File ash/public/interfaces/locale.mojom (right): https://codereview.chromium.org/2420753002/diff/120001/ash/public/interfaces/locale.mojom#newcode15 ash/public/interfaces/locale.mojom:15: // Displays a notification in ash prompting ...
4 years, 2 months ago (2016-10-17 23:48:05 UTC) #35
Elliot Glaysher
https://codereview.chromium.org/2420753002/diff/120001/ash/public/interfaces/locale.mojom File ash/public/interfaces/locale.mojom (right): https://codereview.chromium.org/2420753002/diff/120001/ash/public/interfaces/locale.mojom#newcode15 ash/public/interfaces/locale.mojom:15: // Displays a notification in ash prompting the user ...
4 years, 2 months ago (2016-10-17 23:57:02 UTC) #38
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/2420753002/140001
4 years, 2 months ago (2016-10-17 23:57:48 UTC) #39
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/283199)
4 years, 2 months ago (2016-10-18 00:07:00 UTC) #41
Elliot Glaysher
+sky for OWNERS stamp
4 years, 2 months ago (2016-10-18 00:08:19 UTC) #43
sky
Assuming the answer to my question is the delegate is only called once LGTM https://codereview.chromium.org/2420753002/diff/140001/ash/common/system/locale/locale_notification_controller.cc ...
4 years, 2 months ago (2016-10-18 16:58:03 UTC) #44
Elliot Glaysher
https://codereview.chromium.org/2420753002/diff/140001/ash/common/system/locale/locale_notification_controller.cc File ash/common/system/locale/locale_notification_controller.cc (right): https://codereview.chromium.org/2420753002/diff/140001/ash/common/system/locale/locale_notification_controller.cc#newcode58 ash/common/system/locale/locale_notification_controller.cc:58: callback_.Run(ash::mojom::LocaleNotificationResult::ACCEPT); On 2016/10/18 16:58:03, sky wrote: > I'm not ...
4 years, 2 months ago (2016-10-18 19:41:57 UTC) #47
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/2420753002/160001
4 years, 2 months ago (2016-10-18 20:38:12 UTC) #52
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 2 months ago (2016-10-18 20:49:26 UTC) #54
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:02:55 UTC) #56
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/cf3c339b9bc6b61a00d354d3857c7de9a7dd65aa
Cr-Commit-Position: refs/heads/master@{#426040}

Powered by Google App Engine
This is Rietveld 408576698