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

Issue 11469044: Implement new network change notifier that uses NetworkStateHandler (Closed)

Created:
8 years ago by gauravsh
Modified:
8 years ago
CC:
chromium-reviews
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Implement new network change notifier that uses NetworkStateHandler [This is a reland of 174127 which failed clang bots due to missing virtual keyword on OVERRIDEs.] This implements the new network change notifier that informs the Chrome network stack of connectivity changes. It's currently behind the --enable-new-network-handlers command line flag. BUG=chromium-os:159647 TEST=unit tests, gmerged on a device and ensured offline->online and online->offline transitions are correctly detected. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=174431

Patch Set 1 : . #

Total comments: 2

Patch Set 2 : Move to net/base #

Total comments: 32

Patch Set 3 : address comments + move back to chromeos/ #

Total comments: 2

Patch Set 4 : address syzm comments #

Total comments: 13

Patch Set 5 : address comments #

Patch Set 6 : Fix clang warning (missing virtual on OVERRIDE) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+555 lines, -5 lines) Patch
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 6 chunks +23 lines, -5 lines 0 comments Download
M chromeos/chromeos.gyp View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M chromeos/network/managed_state.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A chromeos/network/network_change_notifier_chromeos.h View 1 2 3 4 5 1 chunk +83 lines, -0 lines 0 comments Download
A chromeos/network/network_change_notifier_chromeos.cc View 1 2 3 4 1 chunk +196 lines, -0 lines 0 comments Download
A chromeos/network/network_change_notifier_chromeos_unittest.cc View 1 2 1 chunk +185 lines, -0 lines 0 comments Download
A chromeos/network/network_change_notifier_factory_chromeos.h View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A chromeos/network/network_change_notifier_factory_chromeos.cc View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
M chromeos/network/network_state.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
gauravsh
Here's an initial patch which I think is ready for review and feedback. There are ...
8 years ago (2012-12-09 23:20:17 UTC) #1
Greg Spencer (Chromium)
On 2012/12/09 23:20:17, gauravsh wrote: > Here's an initial patch which I think is ready ...
8 years ago (2012-12-10 19:25:03 UTC) #2
Greg Spencer (Chromium)
On 2012/12/10 19:25:03, Greg Spencer (Chromium) wrote: > Eventually, this will be the default, and ...
8 years ago (2012-12-10 19:30:17 UTC) #3
stevenjb
My suggestion is to rename the existing class chromeos::NetworkChangeNotifierNetworkLibrary (long, but we're planning to deprecate ...
8 years ago (2012-12-10 19:34:22 UTC) #4
Greg Spencer (Chromium)
LGTM, modulo the arraysize thing below. https://codereview.chromium.org/11469044/diff/4001/chromeos/network/connection_change_notifier_unittest.cc File chromeos/network/connection_change_notifier_unittest.cc (right): https://codereview.chromium.org/11469044/diff/4001/chromeos/network/connection_change_notifier_unittest.cc#newcode54 chromeos/network/connection_change_notifier_unittest.cc:54: for (size_t i ...
8 years ago (2012-12-10 22:54:55 UTC) #5
gauravsh
I would hold off on reviewing this patch. As per my discussion with Steven, I ...
8 years ago (2012-12-11 00:39:18 UTC) #6
gauravsh
I moved the notifier code to net/base. szym: For OWNER reviewing everything under net/. This ...
8 years ago (2012-12-11 03:17:13 UTC) #7
szym
willchan: PTAL at the change to net/base/DEPS Is it okay for net/ to depend on ...
8 years ago (2012-12-12 20:14:08 UTC) #8
willchan no longer on Chromium
I think that's probably a layering violation. I don't know for sure. I'm not familiar ...
8 years ago (2012-12-12 21:09:18 UTC) #9
szym
On 2012/12/12 21:09:18, willchan wrote: > I think that's probably a layering violation. I don't ...
8 years ago (2012-12-12 21:11:19 UTC) #10
stevenjb
On 2012/12/12 21:11:19, szym wrote: > On 2012/12/12 21:09:18, willchan wrote: > > I think ...
8 years ago (2012-12-13 19:06:25 UTC) #11
stevenjb
https://codereview.chromium.org/11469044/diff/12001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/11469044/diff/12001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode395 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:395: LOG(ERROR) << "Using new connection change notifier."; Let's make ...
8 years ago (2012-12-13 19:28:22 UTC) #12
gauravsh
PTAL https://codereview.chromium.org/11469044/diff/12001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/11469044/diff/12001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode395 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:395: LOG(ERROR) << "Using new connection change notifier."; On ...
8 years ago (2012-12-15 00:42:45 UTC) #13
szym
https://codereview.chromium.org/11469044/diff/21002/chromeos/network/network_state.h File chromeos/network/network_state.h (right): https://codereview.chromium.org/11469044/diff/21002/chromeos/network/network_state.h#newcode11 chromeos/network/network_state.h:11: class NetworkChangeNotifierChromeosUpdateTest; This class is now in chromeos:: so ...
8 years ago (2012-12-17 06:16:53 UTC) #14
gauravsh
https://codereview.chromium.org/11469044/diff/21002/chromeos/network/network_state.h File chromeos/network/network_state.h (right): https://codereview.chromium.org/11469044/diff/21002/chromeos/network/network_state.h#newcode11 chromeos/network/network_state.h:11: class NetworkChangeNotifierChromeosUpdateTest; On 2012/12/17 06:16:53, szym wrote: > This ...
8 years ago (2012-12-17 21:05:11 UTC) #15
stevenjb
https://codereview.chromium.org/11469044/diff/31001/chromeos/network/network_change_notifier_chromeos.cc File chromeos/network/network_change_notifier_chromeos.cc (right): https://codereview.chromium.org/11469044/diff/31001/chromeos/network/network_change_notifier_chromeos.cc#newcode32 chromeos/network/network_change_notifier_chromeos.cc:32: NetworkChangeNotifierChromeos::DnsConfigService::DnsConfigService() {} nit: } on new line https://codereview.chromium.org/11469044/diff/31001/chromeos/network/network_change_notifier_chromeos.cc#newcode34 chromeos/network/network_change_notifier_chromeos.cc:34: ...
8 years ago (2012-12-19 20:26:15 UTC) #16
gauravsh
https://codereview.chromium.org/11469044/diff/31001/chromeos/network/network_change_notifier_chromeos.cc File chromeos/network/network_change_notifier_chromeos.cc (right): https://codereview.chromium.org/11469044/diff/31001/chromeos/network/network_change_notifier_chromeos.cc#newcode32 chromeos/network/network_change_notifier_chromeos.cc:32: NetworkChangeNotifierChromeos::DnsConfigService::DnsConfigService() {} On 2012/12/19 20:26:16, stevenjb (chromium) wrote: > ...
8 years ago (2012-12-19 20:36:31 UTC) #17
stevenjb
lgtm https://codereview.chromium.org/11469044/diff/31001/chromeos/network/network_change_notifier_chromeos.cc File chromeos/network/network_change_notifier_chromeos.cc (right): https://codereview.chromium.org/11469044/diff/31001/chromeos/network/network_change_notifier_chromeos.cc#newcode108 chromeos/network/network_change_notifier_chromeos.cc:108: // support is hooked into NetworkStateHandler. For now, ...
8 years ago (2012-12-19 20:44:19 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gauravsh@chromium.org/11469044/40001
8 years ago (2012-12-19 21:21:34 UTC) #19
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_browsertests
8 years ago (2012-12-20 03:38:49 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gauravsh@chromium.org/11469044/40001
8 years ago (2012-12-20 07:39:44 UTC) #21
commit-bot: I haz the power
Change committed as 174127
8 years ago (2012-12-20 10:28:51 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gauravsh@chromium.org/11469044/44002
8 years ago (2012-12-20 19:39:35 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gauravsh@chromium.org/11469044/44002
8 years ago (2012-12-21 19:27:11 UTC) #24
commit-bot: I haz the power
8 years ago (2012-12-21 19:28:31 UTC) #25
Message was sent while issue was closed.
Change committed as 174431

Powered by Google App Engine
This is Rietveld 408576698