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

Unified Diff: components/wifi/wifi_test.cc

Issue 102993002: Implement Networking Private API VerifyAndEncryptCredentials method (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use utility process to get and encrypt wifi passphrase. Created 6 years, 11 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
« chrome/utility/DEPS ('K') | « components/wifi/wifi_service_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/wifi/wifi_test.cc
diff --git a/components/wifi/wifi_test.cc b/components/wifi/wifi_test.cc
index c8875ba59f8efaaf30b39c93caa85502f8c55d17..b5e069094257cd00b8509a16268fcc296f6f4b91 100644
--- a/components/wifi/wifi_test.cc
+++ b/components/wifi/wifi_test.cc
@@ -66,6 +66,7 @@ WiFiTest::Result WiFiTest::Main(int argc, const char* argv[]) {
if (!ParseCommandLine(argc, argv)) {
VLOG(0) << "Usage: " << argv[0] <<
" [--list]"
+ " [--get_password]"
" [--get_properties]"
" [--create]"
" [--connect]"
@@ -190,6 +191,19 @@ bool WiFiTest::ParseCommandLine(int argc, const char* argv[]) {
}
}
+ if (parsed_command_line.HasSwitch("get_password")) {
+ if (network_guid.length() > 0) {
+ std::string error;
+ std::string password;
+ wifi_service->GetPassphraseFromSystem(network_guid,
+ std::string(),
+ &password,
+ &error);
+ VLOG(0) << password << error;
+ return true;
+ }
+ }
+
return false;
}
« chrome/utility/DEPS ('K') | « components/wifi/wifi_service_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698