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

Unified Diff: chrome/browser/chromeos/options/wifi_config_view.cc

Issue 22340006: Show notifications for Network Config errors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + move comment Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/options/wifi_config_view.h ('k') | chromeos/dbus/shill_service_client_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/options/wifi_config_view.cc
diff --git a/chrome/browser/chromeos/options/wifi_config_view.cc b/chrome/browser/chromeos/options/wifi_config_view.cc
index e04785039a23a0f79a2d7173b382973d19a67746..9827218f704ea96b482cb64d7d225ff023e0c3b7 100644
--- a/chrome/browser/chromeos/options/wifi_config_view.cc
+++ b/chrome/browser/chromeos/options/wifi_config_view.cc
@@ -356,9 +356,14 @@ WifiConfigView::WifiConfigView(NetworkConfigView* parent,
error_label_(NULL),
weak_ptr_factory_(this) {
Init(show_8021x);
+ NetworkHandler::Get()->network_state_handler()->AddObserver(this, FROM_HERE);
}
WifiConfigView::~WifiConfigView() {
+ if (NetworkHandler::IsInitialized()) {
+ NetworkHandler::Get()->network_state_handler()->RemoveObserver(
+ this, FROM_HERE);
+ }
CertLibrary::Get()->RemoveObserver(this);
}
@@ -1247,6 +1252,12 @@ void WifiConfigView::InitFocus() {
view_to_focus->RequestFocus();
}
+void WifiConfigView::NetworkPropertiesUpdated(const NetworkState* network) {
+ if (network->path() != service_path_)
+ return;
+ UpdateErrorLabel();
+}
+
// static
void WifiConfigView::ParseWiFiUIProperty(
NetworkPropertyUIData* property_ui_data,
« no previous file with comments | « chrome/browser/chromeos/options/wifi_config_view.h ('k') | chromeos/dbus/shill_service_client_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698