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

Unified Diff: chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.cc

Issue 10175010: Force a rescan when opening the Wifi menu on the settings page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with trunk Created 8 years, 8 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/ui/webui/options2/chromeos/internet_options_handler2.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.cc
diff --git a/chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.cc b/chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.cc
index 54b82b5bc0cedbed1d100872bb1a23ca9309fb03..a39189439c8724241f56a62f8d681fd0db1f9351 100644
--- a/chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.cc
@@ -433,6 +433,9 @@ void InternetOptionsHandler::InitializePage() {
void InternetOptionsHandler::RegisterMessages() {
// Setup handlers specific to this panel.
+ web_ui()->RegisterMessageCallback("refreshNetworks",
+ base::Bind(&InternetOptionsHandler::RefreshNetworksCallback,
+ base::Unretained(this)));
web_ui()->RegisterMessageCallback("buttonClickCallback",
base::Bind(&InternetOptionsHandler::ButtonClickCallback,
base::Unretained(this)));
@@ -576,6 +579,10 @@ void InternetOptionsHandler::ChangePinCallback(const ListValue* args) {
chromeos::SimDialogDelegate::SIM_DIALOG_CHANGE_PIN);
}
+void InternetOptionsHandler::RefreshNetworksCallback(const ListValue* args) {
+ cros_->RequestNetworkScan();
+}
+
void InternetOptionsHandler::RefreshNetworkData() {
DictionaryValue dictionary;
FillNetworkInfo(&dictionary);
« no previous file with comments | « chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698