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

Issue 23075012: Update NetworkStateNotifier to use message_center. (Closed)

Created:
7 years, 4 months ago by stevenjb
Modified:
7 years, 4 months ago
CC:
chromium-reviews, sadrul, nkostylev+watch_chromium.org, ben+watch_chromium.org, gspencer+watch_chromium.org, gauravsh+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Update NetworkStateNotifier to use message_center. This is dependent on https://codereview.chromium.org/22796014/ Notes: * This CL moves the "Cellular Activated" notification out of DataPromoNotification into NetworkStateNotifier so that Ash now handles all network notifications except for "Google Chrome will use mobile data..." + any promo message (which has Chrome dependencies). * The "Cellular Activated" notification should now work correctly for any number of activating networks. * The logic for "Out of Credits" has been simplified, which should also fix a case where it was not showing up when the flag was set but the network was never connected to (a useful case to be notified). BUG=271546 For ash.gyp: TBR=jamescook@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=219232

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : Update string ids, handle empty name #

Total comments: 12

Patch Set 5 : Rebase + Feedback #

Total comments: 23

Patch Set 6 : Improve comments #

Patch Set 7 : Rebase #

Patch Set 8 : Track deafult_network and reset did_show_out_of_credits on any change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -636 lines) Patch
M ash/ash.gyp View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M ash/ash_chromeos_strings.grdp View 1 2 3 1 chunk +5 lines, -5 lines 0 comments Download
M ash/system/chromeos/network/network_connect.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ash/system/chromeos/network/network_connect.cc View 1 2 3 4 5 6 chunks +32 lines, -19 lines 0 comments Download
M ash/system/chromeos/network/network_observer.h View 1 chunk +0 lines, -43 lines 0 comments Download
D ash/system/chromeos/network/network_observer.cc View 1 chunk +0 lines, -35 lines 0 comments Download
M ash/system/chromeos/network/network_state_notifier.h View 1 2 3 4 5 6 7 4 chunks +12 lines, -12 lines 0 comments Download
M ash/system/chromeos/network/network_state_notifier.cc View 1 2 3 4 5 6 7 7 chunks +131 lines, -78 lines 0 comments Download
M ash/system/chromeos/network/network_state_notifier_unittest.cc View 2 chunks +5 lines, -1 line 0 comments Download
D ash/system/chromeos/network/network_tray_delegate.h View 1 chunk +0 lines, -24 lines 0 comments Download
M ash/system/chromeos/network/tray_network.h View 3 chunks +0 lines, -23 lines 0 comments Download
M ash/system/chromeos/network/tray_network.cc View 10 chunks +0 lines, -212 lines 0 comments Download
M ash/system/tray/system_tray_notifier.h View 3 chunks +1 line, -9 lines 0 comments Download
M ash/system/tray/system_tray_notifier.cc View 1 chunk +0 lines, -25 lines 0 comments Download
M chrome/browser/chromeos/status/data_promo_notification.h View 3 chunks +1 line, -29 lines 0 comments Download
M chrome/browser/chromeos/status/data_promo_notification.cc View 10 chunks +43 lines, -118 lines 0 comments Download
M chrome/browser/chromeos/system/ash_system_tray_delegate.cc View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M ui/message_center/notification.h View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M ui/message_center/notification.cc View 1 2 3 4 2 chunks +23 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
stevenjb
The dependent CL needs to land before I can run the trybots, but this should ...
7 years, 4 months ago (2013-08-20 00:01:46 UTC) #1
Jun Mukai
https://codereview.chromium.org/23075012/diff/8001/ash/system/chromeos/network/network_connect.cc File ash/system/chromeos/network/network_connect.cc (right): https://codereview.chromium.org/23075012/diff/8001/ash/system/chromeos/network/network_connect.cc#newcode335 ash/system/chromeos/network/network_connect.cc:335: service_path))); As we discussed on another crbug, the clicked ...
7 years, 4 months ago (2013-08-20 22:25:35 UTC) #2
stevenjb
https://codereview.chromium.org/23075012/diff/8001/ash/system/chromeos/network/network_connect.cc File ash/system/chromeos/network/network_connect.cc (right): https://codereview.chromium.org/23075012/diff/8001/ash/system/chromeos/network/network_connect.cc#newcode335 ash/system/chromeos/network/network_connect.cc:335: service_path))); On 2013/08/20 22:25:36, Jun Mukai wrote: > As ...
7 years, 4 months ago (2013-08-20 22:33:15 UTC) #3
Jun Mukai
lgtm I don't know much about the network handler code, so I mainly looked at ...
7 years, 4 months ago (2013-08-20 22:41:29 UTC) #4
jennyz
lgtm with minor nits. https://codereview.chromium.org/23075012/diff/8001/ash/system/chromeos/network/network_state_notifier.cc File ash/system/chromeos/network/network_state_notifier.cc (right): https://codereview.chromium.org/23075012/diff/8001/ash/system/chromeos/network/network_state_notifier.cc#newcode123 ash/system/chromeos/network/network_state_notifier.cc:123: HasPendingConnectRequest()) nit: indent at the ...
7 years, 4 months ago (2013-08-21 00:02:42 UTC) #5
stevenjb
pneubeck@, ptal at network_state_notifier and network_connect. https://codereview.chromium.org/23075012/diff/8001/ash/system/chromeos/network/network_state_notifier.cc File ash/system/chromeos/network/network_state_notifier.cc (right): https://codereview.chromium.org/23075012/diff/8001/ash/system/chromeos/network/network_state_notifier.cc#newcode123 ash/system/chromeos/network/network_state_notifier.cc:123: HasPendingConnectRequest()) On 2013/08/21 ...
7 years, 4 months ago (2013-08-21 17:38:49 UTC) #6
stevenjb
armansito@ ptal at data_promo_notification
7 years, 4 months ago (2013-08-21 17:39:30 UTC) #7
armansito
https://codereview.chromium.org/23075012/diff/19001/ash/system/chromeos/network/network_connect.cc File ash/system/chromeos/network/network_connect.cc (left): https://codereview.chromium.org/23075012/diff/19001/ash/system/chromeos/network/network_connect.cc#oldcode307 ash/system/chromeos/network/network_connect.cc:307: cellular->activate_over_non_cellular_networks() && Why is this notification shown only when ...
7 years, 4 months ago (2013-08-21 19:51:30 UTC) #8
pneubeck (no reviews)
https://codereview.chromium.org/23075012/diff/19001/ash/system/chromeos/network/network_connect.cc File ash/system/chromeos/network/network_connect.cc (right): https://codereview.chromium.org/23075012/diff/19001/ash/system/chromeos/network/network_connect.cc#newcode124 ash/system/chromeos/network/network_connect.cc:124: network_connect::kNetworkConnectNotificationId, false /* by_user */); nit: change comment to ...
7 years, 4 months ago (2013-08-22 16:28:22 UTC) #9
pneubeck (no reviews)
isn't the commit message partially out-dated? I think you addressed * The flow for showing ...
7 years, 4 months ago (2013-08-22 16:51:45 UTC) #10
stevenjb
https://codereview.chromium.org/23075012/diff/19001/ash/system/chromeos/network/network_connect.cc File ash/system/chromeos/network/network_connect.cc (left): https://codereview.chromium.org/23075012/diff/19001/ash/system/chromeos/network/network_connect.cc#oldcode307 ash/system/chromeos/network/network_connect.cc:307: cellular->activate_over_non_cellular_networks() && On 2013/08/21 19:51:31, armansito wrote: > Why ...
7 years, 4 months ago (2013-08-22 18:01:01 UTC) #11
pneubeck (no reviews)
lgtm
7 years, 4 months ago (2013-08-22 20:10:03 UTC) #12
pneubeck (no reviews)
I mainly looked at ash/system/chromeos/network/*
7 years, 4 months ago (2013-08-22 20:10:32 UTC) #13
armansito
Just one comment, but nothing you have to address in this CL. lgtm. https://codereview.chromium.org/23075012/diff/19001/ash/system/chromeos/network/network_state_notifier.cc File ...
7 years, 4 months ago (2013-08-22 20:59:52 UTC) #14
stevenjb
After talking to Arman, I went with his (and philip's earlier) suggestion of tracking default ...
7 years, 4 months ago (2013-08-22 23:43:27 UTC) #15
armansito
On 2013/08/22 23:43:27, stevenjb (chromium) wrote: > After talking to Arman, I went with his ...
7 years, 4 months ago (2013-08-23 00:18:51 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/23075012/21001
7 years, 4 months ago (2013-08-23 00:21:36 UTC) #17
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=22053
7 years, 4 months ago (2013-08-23 00:36:57 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/23075012/21001
7 years, 4 months ago (2013-08-23 01:06:58 UTC) #19
commit-bot: I haz the power
7 years, 4 months ago (2013-08-23 05:43:52 UTC) #20
Message was sent while issue was closed.
Change committed as 219232

Powered by Google App Engine
This is Rietveld 408576698