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

Unified Diff: chrome/browser/chromeos/proxy_config_service_impl.cc

Issue 8467012: Refactor proxy handling for ChromeOS to not go through the CrosSettings interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Centralized the proxy change notification. Created 9 years, 1 month 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
Index: chrome/browser/chromeos/proxy_config_service_impl.cc
diff --git a/chrome/browser/chromeos/proxy_config_service_impl.cc b/chrome/browser/chromeos/proxy_config_service_impl.cc
index 7d18ba4d0797e976f8766dd6517d9b1053e8679a..405bfaf574f97810783c50caed1c6c6247acdf64 100644
--- a/chrome/browser/chromeos/proxy_config_service_impl.cc
+++ b/chrome/browser/chromeos/proxy_config_service_impl.cc
@@ -753,6 +753,11 @@ void ProxyConfigServiceImpl::DetermineEffectiveConfig(const Network* network,
else
current_ui_config_.user_modifiable = !network || !IgnoreProxy(network);
}
+ // Notify whoever is interested in this change.
Mattias Nissler (ping if slow) 2011/11/08 09:25:22 I still think an actual observer or callback-based
+ content::NotificationService::current()->Notify(
+ chrome::NOTIFICATION_CURRENT_NETWORK_CHANGED,
+ content::NotificationService::AllSources(),
+ content::NotificationService::NoDetails());
kuan 2011/11/08 14:45:25 this is the wrong place to fire this notification;
}
void ProxyConfigServiceImpl::OnUISetCurrentNetwork(const Network* network) {

Powered by Google App Engine
This is Rietveld 408576698