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

Issue 2446573003: chromeos: Make "mobile network" and "set time" dialogs work with mash (Closed)

Created:
4 years, 1 month ago by James Cook
Modified:
4 years, 1 month ago
Reviewers:
msw, stevenjb
CC:
chromium-reviews, kalyank, sadrul, oshima+watch_chromium.org, davemoore+watch_chromium.org, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

chromeos: Make "mobile network" and "set time" dialogs work with mash Under mash code in chrome cannot directly access the ash aura window hierarchy. Instead it must pass an ash window container id when a new window is being opened. Add ChooseMobileNetworkDialog::ShowDialogInContainer() factory method. Refactor existing ShowWebDialogWithContainer method -- in this case the parent NativeWindow can be null. Rather than splitting out a ShowWebDialogInParent method instead fold the code into the existing ShowWebDialog implementation. Also update "set time" dialog which uses the same SetWebDialog code path. BUG=657021 TEST=open mobile network dialog at login screen and after login Committed: https://crrev.com/1c6343d745687e1593c0eb8a0b3132aab81f5f42 Cr-Commit-Position: refs/heads/master@{#427383}

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 8

Patch Set 3 : review comments #

Patch Set 4 : rebase #

Patch Set 5 : gn check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -121 lines) Patch
M chrome/browser/chromeos/set_time_dialog.cc View 1 2 3 chunks +8 lines, -12 lines 0 comments Download
M chrome/browser/chromeos/ui/choose_mobile_network_dialog.h View 1 2 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/ui/choose_mobile_network_dialog.cc View 1 2 2 chunks +13 lines, -3 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/web_dialog_util.h View 1 2 1 chunk +0 lines, -32 lines 0 comments Download
M chrome/browser/ui/ash/web_dialog_util.cc View 1 2 1 chunk +0 lines, -59 lines 0 comments Download
M chrome/browser/ui/browser_dialogs.h View 1 2 3 1 chunk +13 lines, -1 line 0 comments Download
M chrome/browser/ui/views/chrome_web_dialog_view.cc View 1 2 3 4 2 chunks +54 lines, -8 lines 0 comments Download

Messages

Total messages: 31 (22 generated)
James Cook
msw, please take a look. There's a small amount of duplicated code between the two ...
4 years, 1 month ago (2016-10-24 21:37:25 UTC) #6
msw
lgtm with minor comments/questions. It's a bit awkward, but I don't have any brilliant suggestions. ...
4 years, 1 month ago (2016-10-24 22:18:09 UTC) #7
James Cook
Thanks for the quick review. https://codereview.chromium.org/2446573003/diff/20001/chrome/browser/chromeos/ui/choose_mobile_network_dialog.cc File chrome/browser/chromeos/ui/choose_mobile_network_dialog.cc (right): https://codereview.chromium.org/2446573003/diff/20001/chrome/browser/chromeos/ui/choose_mobile_network_dialog.cc#newcode36 chrome/browser/chromeos/ui/choose_mobile_network_dialog.cc:36: DCHECK_NE(container_id, ash::kShellWindowId_Invalid); On 2016/10/24 ...
4 years, 1 month ago (2016-10-25 00:29:04 UTC) #10
James Cook
stevenjb, can I get OWNERS for chrome/browser/chromeos ?
4 years, 1 month ago (2016-10-25 00:30:43 UTC) #12
stevenjb
Could you update the summary/description to account for changing the set time dialog also? Otherwise ...
4 years, 1 month ago (2016-10-25 16:30:52 UTC) #19
James Cook
Updated CL title/description. Thanks for the review.
4 years, 1 month ago (2016-10-25 16:53:54 UTC) #24
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/2446573003/80001
4 years, 1 month ago (2016-10-25 16:54:19 UTC) #27
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-10-25 16:59:19 UTC) #29
commit-bot: I haz the power
4 years, 1 month ago (2016-10-25 17:16:37 UTC) #31
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1c6343d745687e1593c0eb8a0b3132aab81f5f42
Cr-Commit-Position: refs/heads/master@{#427383}

Powered by Google App Engine
This is Rietveld 408576698