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

Issue 1043343002: Use networkingPrivate.startConnect (Closed)

Created:
5 years, 8 months ago by stevenjb
Modified:
5 years, 8 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, michaelpg+watch-options_chromium.org, stevenjb+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@issue_430115_internet_options_cellular
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use networkingPrivate.startConnect This adds checks for unconfigured or non-activated networks to internet_details.js since it no longer uses the checks in network_connect.cc. It also moves some notification handling from network_connect.cc to network_state_notifier.cc so that it does not rely on network_connect.cc. BUG=430115 Committed: https://crrev.com/e22e5bcbad2cea941993b32e6cc3b082822a42fc Cr-Commit-Position: refs/heads/master@{#325108}

Patch Set 1 #

Total comments: 6

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : Separate out logic and use last_error #

Total comments: 4

Patch Set 4 : Rebase #

Patch Set 5 : Fix closeOverlay logic #

Patch Set 6 : Rebase #

Patch Set 7 : Rebase #

Total comments: 14

Patch Set 8 : Move ErrorState logic to ShillToONCTranslator #

Total comments: 1

Patch Set 9 : . #

Patch Set 10 : . #

Total comments: 4

Patch Set 11 : Rebase #

Patch Set 12 : Fix tests, add comment #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -105 lines) Patch
M chrome/browser/chromeos/options/network_config_view.cc View 1 2 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/networking_private/networking_private_chromeos_apitest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/chromeos/internet_detail.js View 1 2 3 4 5 6 7 1 chunk +51 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/internet_options_handler.h View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc View 1 2 3 3 chunks +0 lines, -26 lines 0 comments Download
M chrome/test/data/extensions/api_test/networking_private/chromeos/test.js View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_shill_service_client.cc View 1 2 4 chunks +16 lines, -18 lines 0 comments Download
M chromeos/network/managed_network_configuration_handler_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -3 lines 0 comments Download
M chromeos/network/network_state.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chromeos/network/network_state.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -2 lines 0 comments Download
M chromeos/network/network_state_handler.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M chromeos/network/network_state_handler.cc View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -0 lines 0 comments Download
M chromeos/network/network_util.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chromeos/network/onc/onc_translation_tables.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -8 lines 0 comments Download
M chromeos/network/onc/onc_translator.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -2 lines 0 comments Download
M chromeos/network/onc/onc_translator_shill_to_onc.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +31 lines, -11 lines 0 comments Download
M chromeos/network/onc/onc_translator_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M chromeos/network/policy_applicator.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download
M components/device_event_log/device_event_log_impl.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/onc/docs/onc_spec.html View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -5 lines 2 comments Download
M ui/chromeos/network/network_connect.cc View 1 3 chunks +0 lines, -16 lines 0 comments Download
M ui/chromeos/network/network_state_notifier.h View 1 3 chunks +5 lines, -3 lines 0 comments Download
M ui/chromeos/network/network_state_notifier.cc View 1 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (7 generated)
stevenjb
https://codereview.chromium.org/1043343002/diff/1/ui/chromeos/network/network_connect.cc File ui/chromeos/network/network_connect.cc (left): https://codereview.chromium.org/1043343002/diff/1/ui/chromeos/network/network_connect.cc#oldcode216 ui/chromeos/network/network_connect.cc:216: } This early exit isn't necessary and just confuses ...
5 years, 8 months ago (2015-04-01 00:20:48 UTC) #2
armansito
https://codereview.chromium.org/1043343002/diff/20001/chrome/browser/resources/options/chromeos/internet_detail.js File chrome/browser/resources/options/chromeos/internet_detail.js (right): https://codereview.chromium.org/1043343002/diff/20001/chrome/browser/resources/options/chromeos/internet_detail.js#newcode1172 chrome/browser/resources/options/chromeos/internet_detail.js:1172: if (!onc.getActiveValue('Connectable') || (detailsPage.type_ == 'VPN') || Won't this ...
5 years, 8 months ago (2015-04-01 00:41:54 UTC) #3
stevenjb
I did some more extensive testing and found a case where the JS UI didn't ...
5 years, 8 months ago (2015-04-01 20:53:39 UTC) #5
stevenjb
ping
5 years, 8 months ago (2015-04-03 17:39:26 UTC) #6
michaelpg
https://codereview.chromium.org/1043343002/diff/60001/chrome/browser/resources/options/chromeos/internet_detail.js File chrome/browser/resources/options/chromeos/internet_detail.js (right): https://codereview.chromium.org/1043343002/diff/60001/chrome/browser/resources/options/chromeos/internet_detail.js#newcode1203 chrome/browser/resources/options/chromeos/internet_detail.js:1203: } nit: newline after https://codereview.chromium.org/1043343002/diff/60001/chrome/browser/resources/options/chromeos/internet_detail.js#newcode1205 chrome/browser/resources/options/chromeos/internet_detail.js:1205: PageManager.closeOverlay(); how does ...
5 years, 8 months ago (2015-04-03 17:54:12 UTC) #7
stevenjb
PTAL https://codereview.chromium.org/1043343002/diff/60001/chrome/browser/resources/options/chromeos/internet_detail.js File chrome/browser/resources/options/chromeos/internet_detail.js (right): https://codereview.chromium.org/1043343002/diff/60001/chrome/browser/resources/options/chromeos/internet_detail.js#newcode1203 chrome/browser/resources/options/chromeos/internet_detail.js:1203: } On 2015/04/03 17:54:11, michaelpg wrote: > nit: ...
5 years, 8 months ago (2015-04-06 20:27:12 UTC) #8
michaelpg
chrome/browser lgtm
5 years, 8 months ago (2015-04-06 21:20:27 UTC) #9
stevenjb
+pbeubeck@ now that you're back
5 years, 8 months ago (2015-04-08 20:53:03 UTC) #11
stevenjb
ping
5 years, 8 months ago (2015-04-10 15:59:49 UTC) #12
pneubeck (no reviews)
https://codereview.chromium.org/1043343002/diff/140001/chrome/browser/resources/options/chromeos/internet_detail.js File chrome/browser/resources/options/chromeos/internet_detail.js (right): https://codereview.chromium.org/1043343002/diff/140001/chrome/browser/resources/options/chromeos/internet_detail.js#newcode1196 chrome/browser/resources/options/chromeos/internet_detail.js:1196: DetailsInternetPage.configureOrConnect = function() { can you explain whether this ...
5 years, 8 months ago (2015-04-13 19:16:11 UTC) #13
stevenjb
https://codereview.chromium.org/1043343002/diff/140001/chrome/browser/resources/options/chromeos/internet_detail.js File chrome/browser/resources/options/chromeos/internet_detail.js (right): https://codereview.chromium.org/1043343002/diff/140001/chrome/browser/resources/options/chromeos/internet_detail.js#newcode1196 chrome/browser/resources/options/chromeos/internet_detail.js:1196: DetailsInternetPage.configureOrConnect = function() { On 2015/04/13 19:16:11, pneubeck wrote: ...
5 years, 8 months ago (2015-04-13 21:16:32 UTC) #14
pneubeck (no reviews)
https://codereview.chromium.org/1043343002/diff/160001/chromeos/network/onc/onc_translator_shill_to_onc.cc File chromeos/network/onc/onc_translator_shill_to_onc.cc (right): https://codereview.chromium.org/1043343002/diff/160001/chromeos/network/onc/onc_translator_shill_to_onc.cc#newcode50 chromeos/network/onc/onc_translator_shill_to_onc.cc:50: if (!NetworkHandler::IsInitialized()) On 2015/04/13 21:16:32, stevenjb wrote: > On ...
5 years, 8 months ago (2015-04-14 09:32:16 UTC) #15
stevenjb
On 2015/04/14 09:32:16, pneubeck wrote: > https://codereview.chromium.org/1043343002/diff/160001/chromeos/network/onc/onc_translator_shill_to_onc.cc > File chromeos/network/onc/onc_translator_shill_to_onc.cc (right): > > https://codereview.chromium.org/1043343002/diff/160001/chromeos/network/onc/onc_translator_shill_to_onc.cc#newcode50 > ...
5 years, 8 months ago (2015-04-14 13:04:33 UTC) #16
stevenjb
I think this is probably/hopefully what you were looking for. PTAL
5 years, 8 months ago (2015-04-14 16:23:20 UTC) #17
pneubeck (no reviews)
thanks for getting rid of the implicit dependency. lgtm with some more comments. https://codereview.chromium.org/1043343002/diff/200001/chrome/test/data/extensions/api_test/networking_private/chromeos/test.js File ...
5 years, 8 months ago (2015-04-14 17:37:15 UTC) #18
stevenjb
https://codereview.chromium.org/1043343002/diff/200001/chrome/test/data/extensions/api_test/networking_private/chromeos/test.js File chrome/test/data/extensions/api_test/networking_private/chromeos/test.js (right): https://codereview.chromium.org/1043343002/diff/200001/chrome/test/data/extensions/api_test/networking_private/chromeos/test.js#newcode246 chrome/test/data/extensions/api_test/networking_private/chromeos/test.js:246: chrome.networkingPrivate.getVisibleNetworks( On 2015/04/14 17:37:15, pneubeck wrote: > would the ...
5 years, 8 months ago (2015-04-14 18:27:17 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1043343002/240001
5 years, 8 months ago (2015-04-14 18:27:39 UTC) #22
commit-bot: I haz the power
This issue passed the CQ dry run.
5 years, 8 months ago (2015-04-14 19:43:20 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1043343002/240001
5 years, 8 months ago (2015-04-14 19:45:55 UTC) #26
commit-bot: I haz the power
Committed patchset #12 (id:240001)
5 years, 8 months ago (2015-04-14 19:50:28 UTC) #27
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/e22e5bcbad2cea941993b32e6cc3b082822a42fc Cr-Commit-Position: refs/heads/master@{#325108}
5 years, 8 months ago (2015-04-14 19:51:39 UTC) #28
Mark P
A revert of this CL (patchset #12 id:240001) has been created in https://codereview.chromium.org/1085993002/ by mpearson@chromium.org. ...
5 years, 8 months ago (2015-04-14 22:54:56 UTC) #29
pneubeck (no reviews)
https://codereview.chromium.org/1043343002/diff/240001/components/onc/docs/onc_spec.html File components/onc/docs/onc_spec.html (right): https://codereview.chromium.org/1043343002/diff/240001/components/onc/docs/onc_spec.html#newcode724 components/onc/docs/onc_spec.html:724: hex - number& gt; that looks unintentional
5 years, 8 months ago (2015-04-15 07:46:45 UTC) #30
stevenjb
https://codereview.chromium.org/1043343002/diff/240001/components/onc/docs/onc_spec.html File components/onc/docs/onc_spec.html (right): https://codereview.chromium.org/1043343002/diff/240001/components/onc/docs/onc_spec.html#newcode724 components/onc/docs/onc_spec.html:724: hex - number& gt; On 2015/04/15 07:46:45, pneubeck wrote: ...
5 years, 8 months ago (2015-04-16 17:19:20 UTC) #31
stevenjb
5 years, 8 months ago (2015-04-16 17:25:39 UTC) #32
Message was sent while issue was closed.
On 2015/04/14 22:54:56, Mark P wrote:
> A revert of this CL (patchset #12 id:240001) has been created in
> https://codereview.chromium.org/1085993002/ by mailto:mpearson@chromium.org.
> 
> The reason for reverting is: Causes browser_test failure on Win7 bot.
> https://build.chromium.org/p/chromium.win/builders/Win%207%20Tests%20x64%20(1)
> 
> [ RUN      ] WebNavigationApiTest.Failures
> [4444:4508:0414/144708:WARNING:data_reduction_proxy_config.cc(319)] SPDY proxy
> OFF at startup
> [4444:2028:0414/144708:ERROR:bluetooth_adapter_win.cc(102)] NOT IMPLEMENTED
> [180:3848:0414/144709:WARNING:raw_channel_win.cc(473)] WriteFile: Error (0x5)
> while retrieving error. (0xE8)
> [180:3848:0414/144709:WARNING:channel.cc(549)] Failed to send message to ack
> remove remote endpoint (local ID 2147483650, remote ID 3)
> [180:3848:0414/144709:WARNING:channel.cc(315)] RawChannel write error
> [180:3848:0414/144709:WARNING:raw_channel_win.cc(473)] WriteFile: Error
(0x3B01)
> while retrieving error. (0xE8)
> [180:3848:0414/144709:WARNING:channel.cc(549)] Failed to send message to ack
> remove remote endpoint (local ID 1, remote ID 1)
> [180:3848:0414/144709:WARNING:channel.cc(315)] RawChannel write error
> [4444:2028:0414/144709:INFO:CONSOLE(0)] "[SUCCESS] nonExistentIframe", source:
> chrome-extension://ollhgkgdokpphndfogkepkmblokamlkf/test_failures.html (0)
> [4444:2028:0414/144710:INFO:CONSOLE(0)] "[SUCCESS]
nonExistentIframeNavigation",
> source: chrome-extension://ollhgkgdokpphndfogkepkmblokamlkf/test_failures.html
> (0)
> [4444:2028:0414/144710:INFO:CONSOLE(0)] "[FAIL] cancel: Received unexpected
> event
>
'onCompleted':{"frameId":0,"processId":0,"tabId":0,"timeStamp":0,"url":"chrome-extension://ollhgkgdokpphndfogkepkmblokamlkf/e.html"}
> Error
>     at captureEvent
> (chrome-extension://ollhgkgdokpphndfogkepkmblokamlkf/framework.js:194:17)
>     at chrome-extension://ollhgkgdokpphndfogkepkmblokamlkf/framework.js:219:5
>     at EventImpl.dispatchToListener (extensions::event_bindings:395:22)
>     at Event.publicClass.(anonymous function) [as dispatchToListener]
> (extensions::utils:94:26)
>     at EventImpl.dispatch_ (extensions::event_bindings:379:35)
>     at dispatchArgs (extensions::event_bindings:247:26)
>     at dispatchEvent (extensions::event_bindings:256:7)", source:
> chrome-extension://ollhgkgdokpphndfogkepkmblokamlkf/test_failures.html (0)
> [4444:2028:0414/144710:INFO:CONSOLE(0)] "[SUCCESS] nonExistent", source:
> chrome-extension://ollhgkgdokpphndfogkepkmblokamlkf/test_failures.html (0)
>
c:\b\build\slave\win_x64_builder\build\src\chrome\browser\extensions\api\web_navigation\web_navigation_apitest.cc(468):
> error: Value of: RunExtensionTest("webnavigation/failures")
>   Actual: false
> Expected: true
> Failed 1 of 4 tests
> [4444:2028:0414/144710:ERROR:browser_thread.h(263)] DeleteSoon failed on
thread
> 0
> [  FAILED  ] WebNavigationApiTest.Failures, where TypeParam =  and GetParam()
= 
> (2465 ms)
> .

For future reference, a link to the specific failure (not just the bot) is
helpful. It was:
https://build.chromium.org/p/chromium.win/builders/Win%207%20Tests%20x64%20%2...

It appears that failure was not actually related; it resolved itself before the
revert was committed. Which is good because it's hard to imagine how this would
have generated a Win7 specific failure.

Will re-land this today.

Powered by Google App Engine
This is Rietveld 408576698