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

Issue 2396863004: chromeos: Refactor system tray ShowNetworkSettingsForGuid for mash (Closed)

Created:
4 years, 2 months ago by James Cook
Modified:
4 years, 2 months ago
Reviewers:
Tom Sepez, msw, stevenjb
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), stevenjb+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

chromeos: Refactor system tray ShowNetworkSettingsForGuid for mash * Add to ash::mojom::SystemTrayClient interface * Move implementation in chrome browser into SystemTrayClient * Rename to ShowNetworkSettings with |network_id| because the parameter |guid| isn't always a GUID. This unfortunately has to check IsRunningInMash to access the session state delegate. xiyuan@ is working on a system to replace that delegate, but for now this is the simplest way. BUG=647412 TEST=browser_tests, manually open network settings from system tray, both via the Settings button and by clicking on the connected network Committed: https://crrev.com/b9b36ee098ef29022e8e24c2f6faab21dcde5ec5 Cr-Commit-Position: refs/heads/master@{#423600}

Patch Set 1 #

Total comments: 5

Patch Set 2 : fix on-device with mash #

Patch Set 3 : review comments #

Patch Set 4 : rebase #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -58 lines) Patch
M ash/common/system/chromeos/network/network_state_list_detailed_view.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M ash/common/system/tray/system_tray_controller.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/common/system/tray/system_tray_controller.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M ash/common/system/tray/system_tray_delegate.h View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M ash/common/system/tray/system_tray_delegate.cc View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M ash/public/interfaces/system_tray.mojom View 2 chunks +6 lines, -2 lines 3 comments Download
M chrome/browser/ui/ash/network_connect_delegate_chromeos.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_client.h View 2 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_client.cc View 1 2 3 5 chunks +42 lines, -22 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.cc View 1 2 3 2 chunks +0 lines, -15 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 24 (14 generated)
James Cook
msw, please take a look.
4 years, 2 months ago (2016-10-05 22:13:44 UTC) #4
msw
lgtm with minor optional nits https://codereview.chromium.org/2396863004/diff/1/ash/common/system/chromeos/network/network_state_list_detailed_view.cc File ash/common/system/chromeos/network/network_state_list_detailed_view.cc (right): https://codereview.chromium.org/2396863004/diff/1/ash/common/system/chromeos/network/network_state_list_detailed_view.cc#newcode439 ash/common/system/chromeos/network/network_state_list_detailed_view.cc:439: network ? network->guid() : ...
4 years, 2 months ago (2016-10-05 22:56:36 UTC) #7
James Cook
tsepez, can I get OWNERS for //ash/public/interfaces/system_tray.mojom? (This is the networking "guid" I chatted with ...
4 years, 2 months ago (2016-10-05 23:03:52 UTC) #11
Tom Sepez
mojom LGTM given manifest constraints.
4 years, 2 months ago (2016-10-06 15:59:42 UTC) #14
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/2396863004/60001
4 years, 2 months ago (2016-10-06 18:02:07 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-06 18:37:01 UTC) #18
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/b9b36ee098ef29022e8e24c2f6faab21dcde5ec5 Cr-Commit-Position: refs/heads/master@{#423600}
4 years, 2 months ago (2016-10-06 18:40:09 UTC) #20
stevenjb
Good cleanup, thanks. I'm a little concerned about confusion between "network_id" and "service_path" on Chrome ...
4 years, 2 months ago (2016-10-13 22:03:10 UTC) #22
James Cook
stevenjb - thanks for taking a look. https://codereview.chromium.org/2396863004/diff/60001/ash/public/interfaces/system_tray.mojom File ash/public/interfaces/system_tray.mojom (right): https://codereview.chromium.org/2396863004/diff/60001/ash/public/interfaces/system_tray.mojom#newcode61 ash/public/interfaces/system_tray.mojom:61: ShowNetworkSettings(string network_id); ...
4 years, 2 months ago (2016-10-13 22:16:07 UTC) #23
stevenjb
4 years, 2 months ago (2016-10-13 23:04:38 UTC) #24
Message was sent while issue was closed.
https://codereview.chromium.org/2396863004/diff/60001/ash/public/interfaces/s...
File ash/public/interfaces/system_tray.mojom (right):

https://codereview.chromium.org/2396863004/diff/60001/ash/public/interfaces/s...
ash/public/interfaces/system_tray.mojom:61: ShowNetworkSettings(string
network_id);
On 2016/10/13 22:16:07, James Cook wrote:
> On 2016/10/13 22:03:09, stevenjb wrote:
> > const string& ?
> 
> mojom files use "string", which is translated to "const string&" in the
> generated C++ code

AH, doh, I didn't notice this was a .mojom file.

Powered by Google App Engine
This is Rietveld 408576698