|
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}
Total comments: 18
|
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
|
Total messages: 18 (6 generated)
|