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

Side by Side Diff: components/sync/device_info/device_info_util.h

Issue 2250033002: [Sync] Create //components/sync/device_info. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix lint on device info files. Created 4 years, 4 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef COMPONENTS_SYNC_DRIVER_DEVICE_INFO_UTIL_H_ 5 #ifndef COMPONENTS_SYNC_DEVICE_INFO_DEVICE_INFO_UTIL_H_
6 #define COMPONENTS_SYNC_DRIVER_DEVICE_INFO_UTIL_H_ 6 #define COMPONENTS_SYNC_DEVICE_INFO_DEVICE_INFO_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 11
12 namespace sync_pb { 12 namespace sync_pb {
13 class DeviceInfoSpecifics; 13 class DeviceInfoSpecifics;
14 } 14 }
15 15
16 namespace sync_driver { 16 namespace sync_driver {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // Formats ClientTag from DeviceInfoSpecifics. 48 // Formats ClientTag from DeviceInfoSpecifics.
49 static std::string SpecificsToTag( 49 static std::string SpecificsToTag(
50 const sync_pb::DeviceInfoSpecifics& specifics); 50 const sync_pb::DeviceInfoSpecifics& specifics);
51 51
52 // Extracts cache_guid from ClientTag. 52 // Extracts cache_guid from ClientTag.
53 static std::string TagToCacheGuid(const std::string& tag); 53 static std::string TagToCacheGuid(const std::string& tag);
54 }; 54 };
55 55
56 } // namespace sync_driver 56 } // namespace sync_driver
57 57
58 #endif // COMPONENTS_SYNC_DRIVER_DEVICE_INFO_UTIL_H_ 58 #endif // COMPONENTS_SYNC_DEVICE_INFO_DEVICE_INFO_UTIL_H_
OLDNEW
« no previous file with comments | « components/sync/device_info/device_info_tracker.h ('k') | components/sync/device_info/device_info_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698