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

Issue 762633002: Use NetworkConnectionObserver to trigger connect failure notifications (Closed)

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

Description

Use NetworkConnectionObserver to trigger connect failure notifications Currently we trigger network connect failure notifications when a call from ui::NetworkConnect::ConnectToNetwork() fails. The problem with this approach is that connect calls from elsewhere (e.g. through the networkingPrivate API) will not trigger notifications. This CL makes NetworkStateNotifier a NetworkConnectionObserver and triggers the failure notification on ConnectFailed events instead of the NetworkConnect failure callback so that other failures will also generate notifications. This does not affect spawining of new UI (e.g. network configuration UI) on failure (when appropriate) since that is expected to be handled by any new UI that uses the networkingPrivate API. BUG=434112 Committed: https://crrev.com/2a54d25447a000fc782ea3a8190f18913ad645b9 Cr-Commit-Position: refs/heads/master@{#312879}

Patch Set 1 #

Total comments: 18

Patch Set 2 : Rebase #

Patch Set 3 : Feedback #

Patch Set 4 : Rebase, git cl format #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+332 lines, -128 lines) Patch
M chrome/browser/chromeos/options/vpn_config_view.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/options/wifi_config_view.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/options/wimax_config_view.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chromeos/chromeos.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos/network/auto_connect_handler.h View 1 2 3 1 chunk +7 lines, -8 lines 0 comments Download
M chromeos/network/auto_connect_handler.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/network/network_connection_handler.h View 1 2 3 8 chunks +26 lines, -23 lines 0 comments Download
M chromeos/network/network_connection_handler.cc View 1 2 3 17 chunks +73 lines, -44 lines 0 comments Download
M chromeos/network/network_connection_handler_unittest.cc View 1 2 3 10 chunks +85 lines, -11 lines 0 comments Download
A chromeos/network/network_connection_observer.h View 1 2 1 chunk +47 lines, -0 lines 0 comments Download
A chromeos/network/network_connection_observer.cc View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
M ui/chromeos/network/network_connect.h View 1 chunk +3 lines, -2 lines 0 comments Download
M ui/chromeos/network/network_connect.cc View 1 2 3 4 chunks +27 lines, -34 lines 0 comments Download
M ui/chromeos/network/network_state_notifier.h View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download
M ui/chromeos/network/network_state_notifier.cc View 1 2 3 chunks +19 lines, -1 line 0 comments Download

Messages

Total messages: 18 (6 generated)
stevenjb
pneubeck@ - Apologies again for continuing to bombard you with network UI CLs, but there ...
6 years ago (2014-11-26 00:47:32 UTC) #2
stevenjb
ping
6 years ago (2014-12-16 18:18:25 UTC) #3
pneubeck (no reviews)
mostly nits. apart from that lgtm. https://codereview.chromium.org/762633002/diff/1/chromeos/chromeos.gyp File chromeos/chromeos.gyp (right): https://codereview.chromium.org/762633002/diff/1/chromeos/chromeos.gyp#newcode343 chromeos/chromeos.gyp:343: 'network/network_connection_observer.cc', do you ...
5 years, 11 months ago (2015-01-04 16:57:00 UTC) #4
stevenjb
I was going to try to get this in before the branch, but I think ...
5 years, 11 months ago (2015-01-09 18:18:03 UTC) #5
pneubeck (no reviews)
changes lgtm
5 years, 11 months ago (2015-01-09 19:26:35 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/762633002/60001
5 years, 11 months ago (2015-01-22 21:27:58 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/16404) Try jobs failed on following ...
5 years, 11 months ago (2015-01-22 21:33:51 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/762633002/80001
5 years, 11 months ago (2015-01-23 01:27:05 UTC) #12
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
5 years, 11 months ago (2015-01-23 03:29:17 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/762633002/80001
5 years, 11 months ago (2015-01-23 18:15:04 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 11 months ago (2015-01-23 18:17:33 UTC) #17
commit-bot: I haz the power
5 years, 11 months ago (2015-01-23 18:19:33 UTC) #18
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/2a54d25447a000fc782ea3a8190f18913ad645b9
Cr-Commit-Position: refs/heads/master@{#312879}

Powered by Google App Engine
This is Rietveld 408576698