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

Side by Side Diff: components/wifi_sync/wifi_credential_syncable_service.cc

Issue 2401223002: [Sync] Renaming sync/api* to sync/model*. (Closed)
Patch Set: Missed a comment in a DEPS file, and rebasing. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/wifi_sync/wifi_credential_syncable_service.h" 5 #include "components/wifi_sync/wifi_credential_syncable_service.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "components/sync/api/sync_change.h" 13 #include "components/sync/model/sync_change.h"
14 #include "components/sync/api/sync_data.h" 14 #include "components/sync/model/sync_data.h"
15 #include "components/sync/api/sync_error.h" 15 #include "components/sync/model/sync_error.h"
16 #include "components/sync/api/sync_error_factory.h" 16 #include "components/sync/model/sync_error_factory.h"
17 #include "components/sync/api/sync_merge_result.h" 17 #include "components/sync/model/sync_merge_result.h"
18 #include "components/sync/protocol/sync.pb.h" 18 #include "components/sync/protocol/sync.pb.h"
19 #include "components/wifi_sync/wifi_credential.h" 19 #include "components/wifi_sync/wifi_credential.h"
20 #include "components/wifi_sync/wifi_security_class.h" 20 #include "components/wifi_sync/wifi_security_class.h"
21 21
22 namespace wifi_sync { 22 namespace wifi_sync {
23 23
24 namespace { 24 namespace {
25 25
26 struct RawCredentialData { 26 struct RawCredentialData {
27 std::vector<uint8_t> ssid; 27 std::vector<uint8_t> ssid;
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 if (sync_error.IsSet()) { 226 if (sync_error.IsSet()) {
227 LOG(ERROR) << sync_error.ToString(); 227 LOG(ERROR) << sync_error.ToString();
228 return false; 228 return false;
229 } 229 }
230 230
231 synced_networks_and_passphrases_[network_id] = credential.passphrase(); 231 synced_networks_and_passphrases_[network_id] = credential.passphrase();
232 return true; 232 return true;
233 } 233 }
234 234
235 } // namespace wifi_sync 235 } // namespace wifi_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698