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

Unified Diff: components/wifi_sync/network_state_helper_chromeos.cc

Issue 2463463004: [Sync] Rename wifi_sync to sync_wifi. (Closed)
Patch Set: Created 4 years, 2 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 | « components/wifi_sync/network_state_helper_chromeos.h ('k') | components/wifi_sync/wifi_config_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/wifi_sync/network_state_helper_chromeos.cc
diff --git a/components/wifi_sync/network_state_helper_chromeos.cc b/components/wifi_sync/network_state_helper_chromeos.cc
deleted file mode 100644
index 930598fc07c18238cfd974c1ec4b6b612549c520..0000000000000000000000000000000000000000
--- a/components/wifi_sync/network_state_helper_chromeos.cc
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "components/wifi_sync/network_state_helper_chromeos.h"
-
-#include <memory>
-
-#include "base/logging.h"
-#include "chromeos/network/network_state.h"
-#include "chromeos/network/network_state_handler.h"
-#include "chromeos/network/network_type_pattern.h"
-#include "components/wifi_sync/wifi_security_class.h"
-
-namespace wifi_sync {
-
-WifiCredential::CredentialSet GetWifiCredentialsForShillProfile(
- chromeos::NetworkStateHandler* network_state_handler,
- const std::string& shill_profile_path) {
- DCHECK(network_state_handler);
-
- chromeos::NetworkStateHandler::NetworkStateList networks;
- network_state_handler->GetNetworkListByType(
- chromeos::NetworkTypePattern::WiFi(),
- true /* configured_only */,
- false /* visible_only */,
- 0 /* unlimited result size */,
- &networks);
-
- auto credentials(WifiCredential::MakeSet());
- for (const chromeos::NetworkState* network : networks) {
- if (network->profile_path() != shill_profile_path)
- continue;
-
- // TODO(quiche): Fill in the actual passphrase via an asynchronous
- // call to a chromeos::NetworkConfigurationHandler instance's
- // GetProperties method.
- std::unique_ptr<WifiCredential> credential = WifiCredential::Create(
- network->raw_ssid(),
- WifiSecurityClassFromShillSecurity(network->security_class()),
- "" /* empty passphrase */);
- if (!credential)
- LOG(ERROR) << "Failed to create credential";
- else
- credentials.insert(*credential);
- }
- return credentials;
-}
-
-} // namespace wifi_sync
« no previous file with comments | « components/wifi_sync/network_state_helper_chromeos.h ('k') | components/wifi_sync/wifi_config_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698