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

Issue 275543005: Use GUID instead of ServicePath in networkingPrivate API (Closed)

Created:
6 years, 7 months ago by stevenjb
Modified:
6 years, 7 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, oshima+watch_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Use GUID instead of ServicePath in networkingPrivate API Currently we pass the service path of networks as the "GUID" in the networkingPrivate implementation on Chrome OS. We should be using the actual GUID (if one exists) or create a GUID if one does not. Note: This change should not break any existing usage since the GUID value should be transparant to the implementation. (This will have the positive side effect of making the GUID consistent across sessions). BUG=284827 For fake_wifi_service.cc: R=asargent@chromium.org, pneubeck@chromium.org TBR=mef@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271106

Patch Set 1 #

Patch Set 2 : . #

Total comments: 8

Patch Set 3 : Feedback #

Patch Set 4 : Rebase + modify test to verify guid #

Patch Set 5 : Rebase #

Total comments: 60

Patch Set 6 : Feedback #

Patch Set 7 : Rebase off https://codereview.chromium.org/284673004/ #

Total comments: 16

Patch Set 8 : More Feedback #

Total comments: 12

Patch Set 9 : Feedback #

Patch Set 10 : Rebase #

Patch Set 11 : Fix win/mac #

Patch Set 12 : Fix win/mac #

Patch Set 13 : Rebase #

Patch Set 14 : Rebase + Fix nonchromeos tests #

Patch Set 15 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+485 lines, -150 lines) Patch
M chrome/browser/chromeos/ui_proxy_config_service.cc View 1 2 3 4 5 2 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/networking_private/networking_private_api_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 15 chunks +57 lines, -42 lines 0 comments Download
M chrome/browser/extensions/api/networking_private/networking_private_api_nonchromeos.cc View 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/extensions/api/networking_private/networking_private_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +20 lines, -19 lines 0 comments Download
M chrome/browser/extensions/api/networking_private/networking_private_service_client.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/common/extensions/api/networking_private.json View 4 chunks +7 lines, -7 lines 0 comments Download
M chrome/test/data/extensions/api_test/networking/test.js View 1 2 3 4 5 6 chunks +20 lines, -10 lines 0 comments Download
M chromeos/network/client_cert_resolver.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chromeos/network/favorite_state.h View 1 2 3 4 5 6 7 2 chunks +16 lines, -4 lines 0 comments Download
M chromeos/network/favorite_state.cc View 1 2 3 4 5 2 chunks +21 lines, -2 lines 0 comments Download
M chromeos/network/managed_network_configuration_handler_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +6 lines, -5 lines 0 comments Download
M chromeos/network/managed_state.h View 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/network/network_state.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chromeos/network/network_state.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chromeos/network/network_state_handler.h View 1 2 3 4 5 6 7 6 chunks +36 lines, -2 lines 0 comments Download
M chromeos/network/network_state_handler.cc View 1 2 3 4 5 6 7 8 chunks +79 lines, -10 lines 0 comments Download
M chromeos/network/network_state_handler_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +125 lines, -4 lines 0 comments Download
M chromeos/network/network_util.h View 1 2 3 4 5 2 chunks +13 lines, -0 lines 0 comments Download
M chromeos/network/network_util.cc View 1 2 2 chunks +27 lines, -0 lines 0 comments Download
M chromeos/network/shill_property_handler.cc View 1 2 3 4 5 2 chunks +14 lines, -11 lines 0 comments Download
M components/wifi/fake_wifi_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +20 lines, -20 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
stevenjb
OK, at long last, I think this will work. It's not quite as bad as ...
6 years, 7 months ago (2014-05-08 02:35:46 UTC) #1
pneubeck (no reviews)
did only a quick look at it and looks already rather good to me. We ...
6 years, 7 months ago (2014-05-08 13:25:12 UTC) #2
stevenjb
https://codereview.chromium.org/275543005/diff/10001/chromeos/dbus/fake_shill_service_client.cc File chromeos/dbus/fake_shill_service_client.cc (right): https://codereview.chromium.org/275543005/diff/10001/chromeos/dbus/fake_shill_service_client.cc#newcode335 chromeos/dbus/fake_shill_service_client.cc:335: if (!guid.empty()) { On 2014/05/08 13:25:12, pneubeck wrote: > ...
6 years, 7 months ago (2014-05-08 22:32:26 UTC) #3
stevenjb
PTAL It turns out that the setProperties() already effectively tests GUID lookup after changing the ...
6 years, 7 months ago (2014-05-09 19:31:13 UTC) #4
asargent_no_longer_on_chrome
extensions lgtm
6 years, 7 months ago (2014-05-10 14:24:28 UTC) #5
pneubeck (no reviews)
Mostly nits except one major concern: Currently you never remove from the SpecifierGuidMap. Assume, a ...
6 years, 7 months ago (2014-05-12 13:37:06 UTC) #6
pneubeck (no reviews)
On 2014/05/12 13:37:06, pneubeck wrote: > Mostly nits except one major concern: > > Currently ...
6 years, 7 months ago (2014-05-12 13:39:19 UTC) #7
stevenjb
I addressed the mapping issue by removing saved entries from the map, I think that ...
6 years, 7 months ago (2014-05-13 01:18:59 UTC) #8
pneubeck (no reviews)
lgtm with a few comments/questions. I will review the other CL tomorrow, no time left ...
6 years, 7 months ago (2014-05-13 08:43:54 UTC) #9
stevenjb
https://codereview.chromium.org/275543005/diff/70001/chromeos/network/network_state_handler_unittest.cc File chromeos/network/network_state_handler_unittest.cc (right): https://codereview.chromium.org/275543005/diff/70001/chromeos/network/network_state_handler_unittest.cc#newcode508 chromeos/network/network_state_handler_unittest.cc:508: service_test_->RemoveService(wifi_path); On 2014/05/13 08:43:54, pneubeck wrote: > On 2014/05/13 ...
6 years, 7 months ago (2014-05-13 18:25:06 UTC) #10
pneubeck (no reviews)
still lgtm with minor comments. https://codereview.chromium.org/275543005/diff/70001/chromeos/network/network_state_handler_unittest.cc File chromeos/network/network_state_handler_unittest.cc (right): https://codereview.chromium.org/275543005/diff/70001/chromeos/network/network_state_handler_unittest.cc#newcode508 chromeos/network/network_state_handler_unittest.cc:508: service_test_->RemoveService(wifi_path); On 2014/05/13 18:25:07, ...
6 years, 7 months ago (2014-05-14 08:46:06 UTC) #11
stevenjb
https://codereview.chromium.org/275543005/diff/150001/chromeos/network/network_state_handler_unittest.cc File chromeos/network/network_state_handler_unittest.cc (right): https://codereview.chromium.org/275543005/diff/150001/chromeos/network/network_state_handler_unittest.cc#newcode381 chromeos/network/network_state_handler_unittest.cc:381: TEST_F(NetworkStateHandlerTest, GetState) { On 2014/05/14 08:46:07, pneubeck wrote: > ...
6 years, 7 months ago (2014-05-14 17:31:55 UTC) #12
stevenjb
The CQ bit was checked by stevenjb@chromium.org
6 years, 7 months ago (2014-05-14 23:23:29 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/275543005/190001
6 years, 7 months ago (2014-05-14 23:24:06 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-15 03:00:48 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-15 03:05:42 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg/builds/184193)
6 years, 7 months ago (2014-05-15 03:05:42 UTC) #17
pneubeck (no reviews)
The CQ bit was checked by pneubeck@chromium.org
6 years, 7 months ago (2014-05-15 07:31:55 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/275543005/190001
6 years, 7 months ago (2014-05-15 07:32:06 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-15 11:16:32 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-15 12:21:42 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_rel/builds/28841)
6 years, 7 months ago (2014-05-15 12:21:43 UTC) #22
stevenjb
The CQ bit was checked by stevenjb@chromium.org
6 years, 7 months ago (2014-05-15 19:04:30 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/275543005/230001
6 years, 7 months ago (2014-05-15 19:05:57 UTC) #24
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-15 22:13:30 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-15 22:17:27 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_chromium_gn_compile_rel/builds/4749) chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/67985) linux_chromium_chromeos_rel ...
6 years, 7 months ago (2014-05-15 22:17:27 UTC) #27
stevenjb
The CQ bit was checked by stevenjb@chromium.org
6 years, 7 months ago (2014-05-16 01:28:00 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/275543005/250001
6 years, 7 months ago (2014-05-16 01:28:14 UTC) #29
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-16 05:33:09 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-16 07:29:42 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_rel/builds/29207)
6 years, 7 months ago (2014-05-16 07:29:42 UTC) #32
stevenjb
+mef@ for FakeWifiService
6 years, 7 months ago (2014-05-16 20:26:44 UTC) #33
stevenjb
6 years, 7 months ago (2014-05-16 21:48:51 UTC) #34
Message was sent while issue was closed.
Committed patchset #15 manually as r271106 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698