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

Side by Side Diff: components/sync/driver/sync_util.cc

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (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 unified diff | Download patch
« no previous file with comments | « components/sync/driver/sync_util.h ('k') | components/sync/driver/sync_util_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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/sync/driver/sync_util.h" 5 #include "components/sync/driver/sync_util.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "components/sync/driver/sync_driver_switches.h" 10 #include "components/sync/driver/sync_driver_switches.h"
(...skipping 27 matching lines...) Expand all
38 #elif defined(OS_OPENBSD) 38 #elif defined(OS_OPENBSD)
39 system = "OPENBSD "; 39 system = "OPENBSD ";
40 #elif defined(OS_MACOSX) 40 #elif defined(OS_MACOSX)
41 system = "MAC "; 41 system = "MAC ";
42 #endif 42 #endif
43 return system; 43 return system;
44 } 44 }
45 45
46 } // namespace 46 } // namespace
47 47
48 namespace syncer {
49 namespace internal { 48 namespace internal {
50 49
51 const char* kSyncServerUrl = "https://clients4.google.com/chrome-sync"; 50 const char* kSyncServerUrl = "https://clients4.google.com/chrome-sync";
52 51
53 const char* kSyncDevServerUrl = "https://clients4.google.com/chrome-sync/dev"; 52 const char* kSyncDevServerUrl = "https://clients4.google.com/chrome-sync/dev";
54 53
55 std::string FormatUserAgentForSync(const std::string& system, 54 std::string FormatUserAgentForSync(const std::string& system,
56 version_info::Channel channel) { 55 version_info::Channel channel) {
57 std::string user_agent; 56 std::string user_agent;
58 user_agent = "Chrome "; 57 user_agent = "Chrome ";
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 } 97 }
99 } 98 }
100 return result; 99 return result;
101 } 100 }
102 101
103 std::string MakeUserAgentForSync(version_info::Channel channel, 102 std::string MakeUserAgentForSync(version_info::Channel channel,
104 bool is_tablet) { 103 bool is_tablet) {
105 std::string system = GetSystemString(is_tablet); 104 std::string system = GetSystemString(is_tablet);
106 return internal::FormatUserAgentForSync(system, channel); 105 return internal::FormatUserAgentForSync(system, channel);
107 } 106 }
108
109 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/driver/sync_util.h ('k') | components/sync/driver/sync_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698