Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / common / sync_util.h
blob545c26fcaec91ef6aa44fcfe71c4e29ee1bce78d
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_COMMON_SYNC_UTIL_H_
6 #define CHROME_COMMON_SYNC_UTIL_H_
8 #include <string>
10 class GURL;
12 namespace base {
13 class CommandLine;
16 namespace chrome {
17 class VersionInfo;
20 namespace internal {
21 // Default sync server URL. Visible for testing.
22 extern const char* kSyncServerUrl;
24 // Sync server URL for dev channel users. Visible for testing.
25 extern const char* kSyncDevServerUrl;
28 GURL GetSyncServiceURL(const base::CommandLine& command_line);
30 // Helper to construct a user agent string (ASCII) suitable for use by
31 // the syncapi for any HTTP communication. This string is used by the sync
32 // backend for classifying client types when calculating statistics.
33 std::string MakeDesktopUserAgentForSync(
34 const chrome::VersionInfo& version_info);
35 std::string MakeUserAgentForSync(const chrome::VersionInfo& version_info,
36 const std::string& system);
38 #endif // CHROME_COMMON_SYNC_UTIL_H_