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

Issue 175243004: Chrome OS: Use Manager.DefaultService for Default Network (Closed)

Created:
6 years, 10 months ago by stevenjb
Modified:
6 years, 9 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, oshima+watch_chromium.org
Visibility:
Public.

Description

Chrome OS: Use Manager.DefaultService for Default Network This changes Chrome to use Manager.DefaultService to provide the default network to Chrome (i.e. NetworkChangeNotifier) instead of relying on Manager.Services[0]. This should fix some timing issues and make the NCS more in sync with Shill. One change in behavior that should be benign is that Shill considers a connecting network to be the default network, whereas previously only a connected network would be considered. BUG=159540, 330873 R=gauravsh@chromium.org, pneubeck@chromium.org, tbarzic@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255124

Patch Set 1 #

Patch Set 2 : . #

Total comments: 8

Patch Set 3 : Rebase #

Patch Set 4 : Feedback, more logging #

Patch Set 5 : . #

Total comments: 4

Patch Set 6 : Set default path of '/' to empty #

Total comments: 6

Patch Set 7 : Rebase #

Patch Set 8 : Use default_network_path_ #

Patch Set 9 : Rebase #

Patch Set 10 : Fix tests #

Patch Set 11 : Fix tests #

Patch Set 12 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+382 lines, -171 lines) Patch
M chrome/browser/chromeos/net/network_portal_detector_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +17 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/proxy_config_service_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_shill_manager_client.h View 1 2 3 4 5 6 7 8 9 4 chunks +10 lines, -4 lines 0 comments Download
M chromeos/dbus/fake_shill_manager_client.cc View 1 2 3 4 5 6 7 8 9 10 18 chunks +84 lines, -34 lines 0 comments Download
M chromeos/dbus/fake_shill_service_client.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chromeos/dbus/fake_shill_service_client.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +22 lines, -3 lines 0 comments Download
M chromeos/dbus/shill_manager_client.h View 1 2 3 4 5 6 7 8 9 2 chunks +13 lines, -2 lines 0 comments Download
M chromeos/network/network_state_handler.h View 1 2 3 3 chunks +11 lines, -9 lines 0 comments Download
M chromeos/network/network_state_handler.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +56 lines, -36 lines 0 comments Download
M chromeos/network/network_state_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +130 lines, -56 lines 0 comments Download
M chromeos/network/shill_property_handler.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chromeos/network/shill_property_handler.cc View 1 chunk +5 lines, -1 line 0 comments Download
M chromeos/network/shill_property_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +26 lines, -17 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
stevenjb
OK, I've tested this on my device and everything seems to be working OK, so ...
6 years, 10 months ago (2014-02-21 19:38:05 UTC) #1
mukesh agrawal
stevenjb@, good catch about the connecting network issue. i'm going to change shill to not ...
6 years, 10 months ago (2014-02-21 21:28:47 UTC) #2
mukesh agrawal
crbug.com/345829 for the shill issue
6 years, 10 months ago (2014-02-21 21:32:09 UTC) #3
stevenjb
On 2014/02/21 21:32:09, mukesh agrawal wrote: > crbug.com/345829 for the shill issue Great, that should ...
6 years, 10 months ago (2014-02-21 21:51:50 UTC) #4
pneubeck (no reviews)
We should ensure that the exact order of property updates in the cases: - going ...
6 years, 10 months ago (2014-02-24 09:22:58 UTC) #5
stevenjb
Good suggestion on the tests, separating the conditions out helped reveal some discrepencies in the ...
6 years, 10 months ago (2014-02-24 23:59:41 UTC) #6
mukesh agrawal
https://codereview.chromium.org/175243004/diff/360001/chromeos/network/network_state_handler.cc File chromeos/network/network_state_handler.cc (right): https://codereview.chromium.org/175243004/diff/360001/chromeos/network/network_state_handler.cc#newcode183 chromeos/network/network_state_handler.cc:183: if (default_network_path_.empty()) Not sure about this check. When there ...
6 years, 10 months ago (2014-02-25 02:08:41 UTC) #7
stevenjb
https://codereview.chromium.org/175243004/diff/360001/chromeos/network/network_state_handler.cc File chromeos/network/network_state_handler.cc (right): https://codereview.chromium.org/175243004/diff/360001/chromeos/network/network_state_handler.cc#newcode183 chromeos/network/network_state_handler.cc:183: if (default_network_path_.empty()) On 2014/02/25 02:08:41, mukesh agrawal wrote: > ...
6 years, 10 months ago (2014-02-25 21:31:39 UTC) #8
mukesh agrawal
sgtm
6 years, 10 months ago (2014-02-25 21:36:30 UTC) #9
tbarzic
lgtm
6 years, 10 months ago (2014-02-25 23:27:45 UTC) #10
gauravsh
https://codereview.chromium.org/175243004/diff/380001/chromeos/network/network_state_handler.cc File chromeos/network/network_state_handler.cc (right): https://codereview.chromium.org/175243004/diff/380001/chromeos/network/network_state_handler.cc#newcode698 chromeos/network/network_state_handler.cc:698: if (!service_path.empty()) { Shouldn't this check also be service_path ...
6 years, 10 months ago (2014-02-26 00:44:32 UTC) #11
pneubeck (no reviews)
lgtm https://codereview.chromium.org/175243004/diff/380001/chromeos/network/network_state_handler.cc File chromeos/network/network_state_handler.cc (right): https://codereview.chromium.org/175243004/diff/380001/chromeos/network/network_state_handler.cc#newcode691 chromeos/network/network_state_handler.cc:691: const char* kEmptyServicePath = "/"; Better add a ...
6 years, 10 months ago (2014-02-26 08:52:41 UTC) #12
stevenjb
https://codereview.chromium.org/175243004/diff/380001/chromeos/network/network_state_handler.cc File chromeos/network/network_state_handler.cc (right): https://codereview.chromium.org/175243004/diff/380001/chromeos/network/network_state_handler.cc#newcode691 chromeos/network/network_state_handler.cc:691: const char* kEmptyServicePath = "/"; On 2014/02/26 08:52:42, pneubeck ...
6 years, 10 months ago (2014-02-26 18:04:47 UTC) #13
stevenjb
The CQ bit was checked by stevenjb@chromium.org
6 years, 10 months ago (2014-02-26 18:04:52 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/175243004/410001
6 years, 10 months ago (2014-02-26 18:06:16 UTC) #15
gauravsh
lgtm
6 years, 10 months ago (2014-02-26 18:08:21 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-26 18:56:41 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_clang_dbg
6 years, 10 months ago (2014-02-26 18:56:42 UTC) #18
stevenjb
The CQ bit was checked by stevenjb@chromium.org
6 years, 10 months ago (2014-02-27 02:24:42 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/175243004/430001
6 years, 10 months ago (2014-02-27 02:26:32 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-27 03:43:02 UTC) #21
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=205874
6 years, 10 months ago (2014-02-27 03:43:03 UTC) #22
stevenjb
The CQ bit was checked by stevenjb@chromium.org
6 years, 9 months ago (2014-03-04 01:36:03 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/175243004/450001
6 years, 9 months ago (2014-03-04 01:40:15 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-04 03:19:53 UTC) #25
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=273728
6 years, 9 months ago (2014-03-04 03:19:54 UTC) #26
stevenjb
6 years, 9 months ago (2014-03-05 19:55:16 UTC) #27
Message was sent while issue was closed.
Committed patchset #12 manually as r255124 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698