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

Unified Diff: monitor_network.cc

Issue 652187: Added ConnectToNetwork (Closed)
Patch Set: merge in new changes Created 10 years, 10 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 | « load.cc ('k') | monitor_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: monitor_network.cc
diff --git a/monitor_network.cc b/monitor_network.cc
index 16d952dc02e2d1fd48508f93bacd4ecc33b78973..e5e826370aa5d153d202fc71b48439768999bb41 100644
--- a/monitor_network.cc
+++ b/monitor_network.cc
@@ -15,13 +15,19 @@
// Dumps the contents of a single service to the logs.
void DumpService(const chromeos::ServiceInfo& info) {
- LOG(INFO) << " " << info.ssid <<
+ LOG(INFO) << " " << info.name <<
+ ", Type=" << info.type <<
+ ", Mode=" << info.mode <<
+ ", Security=" << info.security <<
", State=" << info.state <<
- ", Type=" <<info.type <<
+ ", Error=" << info.error <<
+ ", PassphraseRequired=" << info.passphrase_required <<
+ ", Passphrase=" << info.passphrase <<
+ ", Strength=" << info.strength <<
+ ", Favorite=" << info.favorite <<
+ ", AutoConnect=" << info.auto_connect <<
", Device=" << info.device_path <<
- ", Encryption=" << info.encryption <<
- ", Signal=" << info.signal_strength <<
- ", Password=" << info.needs_passphrase;
+ ", Service=" << info.service_path;
}
// Dumps the contents of ServiceStatus to the log.
@@ -78,15 +84,15 @@ int main(int argc, const char** argv) {
if (devices == -1) {
LOG(INFO) << " offline mode";
} else {
- if (devices & chromeos::TYPE_ETHERNET)
+ if (devices & (1 << chromeos::TYPE_ETHERNET))
LOG(INFO) << " ethernet";
- if (devices & chromeos::TYPE_WIFI)
+ if (devices & (1 << chromeos::TYPE_WIFI))
LOG(INFO) << " wifi";
- if (devices & chromeos::TYPE_WIMAX)
+ if (devices & (1 << chromeos::TYPE_WIMAX))
LOG(INFO) << " wimax";
- if (devices & chromeos::TYPE_BLUETOOTH)
+ if (devices & (1 << chromeos::TYPE_BLUETOOTH))
LOG(INFO) << " bluetooth";
- if (devices & chromeos::TYPE_CELLULAR)
+ if (devices & (1 << chromeos::TYPE_CELLULAR))
LOG(INFO) << " cellular";
}
« no previous file with comments | « load.cc ('k') | monitor_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698