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

Unified Diff: components/sync_wifi/wifi_credential.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/sync_wifi/wifi_credential.h ('k') | components/sync_wifi/wifi_credential_syncable_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_wifi/wifi_credential.cc
diff --git a/components/wifi_sync/wifi_credential.cc b/components/sync_wifi/wifi_credential.cc
similarity index 82%
rename from components/wifi_sync/wifi_credential.cc
rename to components/sync_wifi/wifi_credential.cc
index bbbb492f260e30f982bffd7fe86ad97702fc1bf2..a6a0e389ec0a84dcdd92e8ae04935de2655dddeb 100644
--- a/components/wifi_sync/wifi_credential.cc
+++ b/components/sync_wifi/wifi_credential.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/wifi_sync/wifi_credential.h"
+#include "components/sync_wifi/wifi_credential.h"
#include "base/i18n/streaming_utf8_validator.h"
#include "base/logging.h"
@@ -12,12 +12,11 @@
#include "base/values.h"
#include "components/onc/onc_constants.h"
-namespace wifi_sync {
+namespace sync_wifi {
WifiCredential::WifiCredential(const WifiCredential& other) = default;
-WifiCredential::~WifiCredential() {
-}
+WifiCredential::~WifiCredential() {}
// static
std::unique_ptr<WifiCredential> WifiCredential::Create(
@@ -79,11 +78,10 @@ std::string WifiCredential::ToString() const {
}
// static
-bool WifiCredential::IsLessThan(
- const WifiCredential& a, const WifiCredential& b) {
- return a.ssid_ < b.ssid_ ||
- a.security_class_< b.security_class_ ||
- a.passphrase_ < b.passphrase_;
+bool WifiCredential::IsLessThan(const WifiCredential& a,
+ const WifiCredential& b) {
+ return a.ssid_ < b.ssid_ || a.security_class_ < b.security_class_ ||
+ a.passphrase_ < b.passphrase_;
}
// static
@@ -99,13 +97,9 @@ WifiCredential::SsidBytes WifiCredential::MakeSsidBytesForTest(
// Private methods.
-WifiCredential::WifiCredential(
- const std::vector<unsigned char>& ssid,
- WifiSecurityClass security_class,
- const std::string& passphrase)
- : ssid_(ssid),
- security_class_(security_class),
- passphrase_(passphrase) {
-}
+WifiCredential::WifiCredential(const std::vector<unsigned char>& ssid,
+ WifiSecurityClass security_class,
+ const std::string& passphrase)
+ : ssid_(ssid), security_class_(security_class), passphrase_(passphrase) {}
-} // namespace wifi_sync
+} // namespace sync_wifi
« no previous file with comments | « components/sync_wifi/wifi_credential.h ('k') | components/sync_wifi/wifi_credential_syncable_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698