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

Issue 2861773003: chromeos: Fix crash when clicking on networking menu under mash (Closed)

Created:
3 years, 7 months ago by James Cook
Modified:
3 years, 7 months ago
Reviewers:
stevenjb
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

chromeos: Fix crash when clicking on networking menu under mash The crash occurs because chrome --mash doesn't have a chromeos::UIProxyConfigService. For classic ash this is usually created by chrome browser during startup. This object is using in ash to display a "your connection may be monitored" warning when using a network proxy. It has dependencies on the user profile pref service and the local state prefs, so we can't create one for mash yet. As a temporary measure, add a check for mash and skip the warning. This can be fixed properly when the mojo prefs service supports local state. Also add tests for TrayNetwork. This requires making it optional to initialize chromeos::NetworkHandler and DBusThreadManager in mash_unittests. BUG=717645, 718072 TEST=ash_unittests, also chrome --mash doesn't crash when opening system tray networking menu Review-Url: https://codereview.chromium.org/2861773003 Cr-Commit-Position: refs/heads/master@{#469202} Committed: https://chromium.googlesource.com/chromium/src/+/0249478f91c38f2c29642c4717eafcdc62e65bfd

Patch Set 1 #

Patch Set 2 : mash_unittests #

Patch Set 3 : deps #

Total comments: 5

Patch Set 4 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -17 lines) Patch
M ash/BUILD.gn View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M ash/mus/window_manager_application.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M ash/mus/window_manager_application.cc View 1 2 3 2 chunks +12 lines, -6 lines 0 comments Download
M ash/system/network/network_list.cc View 1 2 3 2 chunks +12 lines, -7 lines 0 comments Download
A ash/system/network/tray_network_unittest.cc View 1 chunk +92 lines, -0 lines 0 comments Download
M ash/test/ash_test_helper.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 19 (13 generated)
James Cook
stevenjb, please take a look. sammiequon, just FYI
3 years, 7 months ago (2017-05-03 22:05:42 UTC) #9
stevenjb
lgtm w/ suggestions https://codereview.chromium.org/2861773003/diff/40001/ash/mus/window_manager_application.cc File ash/mus/window_manager_application.cc (right): https://codereview.chromium.org/2861773003/diff/40001/ash/mus/window_manager_application.cc#newcode110 ash/mus/window_manager_application.cc:110: chromeos::NetworkHandler::Initialize(); Should we also check chromeos::NetworkHandler::IsInitialized() ...
3 years, 7 months ago (2017-05-03 22:11:40 UTC) #11
James Cook
Thanks for the quick review. https://codereview.chromium.org/2861773003/diff/40001/ash/mus/window_manager_application.cc File ash/mus/window_manager_application.cc (right): https://codereview.chromium.org/2861773003/diff/40001/ash/mus/window_manager_application.cc#newcode110 ash/mus/window_manager_application.cc:110: chromeos::NetworkHandler::Initialize(); On 2017/05/03 22:11:39, ...
3 years, 7 months ago (2017-05-03 22:29:33 UTC) #12
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/2861773003/60001
3 years, 7 months ago (2017-05-03 22:30:04 UTC) #15
sammiequon
Thanks for fixing this!
3 years, 7 months ago (2017-05-03 22:41:32 UTC) #16
commit-bot: I haz the power
3 years, 7 months ago (2017-05-03 23:49:32 UTC) #19
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/0249478f91c38f2c29642c4717ea...

Powered by Google App Engine
This is Rietveld 408576698