Remove migrateNetworkPredictionPreferences().
[chromium-blink-merge.git] / components / sync_driver / sync_util.h
blobf0de6460775f7e5d7c9253b741c52433f35b4617
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 COMPONENTS_SYNC_DRIVER_SYNC_UTIL_H_
6 #define COMPONENTS_SYNC_DRIVER_SYNC_UTIL_H_
8 #include <string>
10 #include "components/version_info/version_info.h"
12 class GURL;
14 namespace base {
15 class CommandLine;
18 namespace internal {
19 // Default sync server URL. Visible for testing.
20 extern const char* kSyncServerUrl;
22 // Sync server URL for dev channel users. Visible for testing.
23 extern const char* kSyncDevServerUrl;
26 GURL GetSyncServiceURL(const base::CommandLine& command_line,
27 version_info::Channel channel);
29 // Helper to construct a user agent string (ASCII) suitable for use by
30 // the syncapi for any HTTP communication. This string is used by the sync
31 // backend for classifying client types when calculating statistics.
32 std::string MakeDesktopUserAgentForSync(version_info::Channel channel);
33 std::string MakeUserAgentForSync(const std::string& system,
34 version_info::Channel channel);
36 #endif // COMPONENTS_SYNC_DRIVER_SYNC_UTIL_H_