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

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

Issue 10174010: Add BSSID, frequency and signal strength to WiFi details. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update grd example to MHz. Insert space before unit. 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/resources/options2/chromeos/internet_detail.js ('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..1e9187cc130d85fed7af0c07be3efb5406a04520 100644
--- a/chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.cc
@@ -338,10 +338,19 @@ void InternetOptionsHandler::GetLocalizedValues(
{ "accessLockedMsg", IDS_STATUSBAR_NETWORK_LOCKED },
{ "inetSsid", IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_NETWORK_ID },
+ { "inetBssid", IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_NETWORK_BSSID },
{ "inetEncryption",
- IDS_OPTIONS_SETTIGNS_INTERNET_OPTIONS_NETWORK_ENCRYPTION },
+ IDS_OPTIONS_SETTIGNS_INTERNET_OPTIONS_NETWORK_ENCRYPTION },
+ { "inetFrequency",
+ IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_NETWORK_FREQUENCY },
+ { "inetFrequencyFormat",
+ IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_NETWORK_FREQUENCY_MHZ },
+ { "inetSignalStrength",
+ IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_NETWORK_STRENGTH },
+ { "inetSignalStrengthFormat",
+ IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_NETWORK_STRENGTH_PERCENTAGE },
{ "inetPassProtected",
- IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_NET_PROTECTED },
+ IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_NET_PROTECTED },
{ "inetNetworkShared",
IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_NETWORK_SHARED },
{ "inetPreferredNetwork",
@@ -889,6 +898,9 @@ void InternetOptionsHandler::PopulateWifiDetails(
bool shared = wifi->profile_type() == chromeos::PROFILE_SHARED;
dictionary->SetBoolean("shared", shared);
dictionary->SetString("encryption", wifi->GetEncryptionString());
+ dictionary->SetString("bssid", wifi->bssid());
+ dictionary->SetInteger("frequency", wifi->frequency());
+ dictionary->SetInteger("strength", wifi->strength());
}
DictionaryValue* InternetOptionsHandler::CreateDictionaryFromCellularApn(
« no previous file with comments | « chrome/browser/resources/options2/chromeos/internet_detail.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698