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

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

Issue 10212003: Cleanup of network code. (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 f3440f072c5acd01a361245eac54cade3322f7d8..0af1a6b21182216765e1d2c5207f3697dce7378f 100644
--- a/chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.cc
@@ -442,12 +442,12 @@ void InternetOptionsHandler::InitializePage() {
void InternetOptionsHandler::RegisterMessages() {
// Setup handlers specific to this panel.
+ web_ui()->RegisterMessageCallback("networkCommand",
+ base::Bind(&InternetOptionsHandler::NetworkCommandCallback,
+ base::Unretained(this)));
web_ui()->RegisterMessageCallback("refreshNetworks",
base::Bind(&InternetOptionsHandler::RefreshNetworksCallback,
base::Unretained(this)));
- web_ui()->RegisterMessageCallback("buttonClickCallback",
- base::Bind(&InternetOptionsHandler::ButtonClickCallback,
- base::Unretained(this)));
web_ui()->RegisterMessageCallback("refreshCellularPlan",
base::Bind(&InternetOptionsHandler::RefreshCellularPlanCallback,
base::Unretained(this)));
@@ -1048,7 +1048,7 @@ gfx::NativeWindow InternetOptionsHandler::GetNativeWindow() const {
return browser->window()->GetNativeHandle();
}
-void InternetOptionsHandler::ButtonClickCallback(const ListValue* args) {
+void InternetOptionsHandler::NetworkCommandCallback(const ListValue* args) {
std::string str_type;
std::string service_path;
std::string command;
« 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