| OLD | NEW |
| 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 "components/sync_driver/sync_driver_switches.h" | 10 #include "components/sync_driver/sync_driver_switches.h" |
| 10 #include "url/gurl.h" | 11 #include "url/gurl.h" |
| 11 | 12 |
| 12 namespace internal { | 13 namespace internal { |
| 13 const char* kSyncServerUrl = "https://clients4.google.com/chrome-sync"; | 14 const char* kSyncServerUrl = "https://clients4.google.com/chrome-sync"; |
| 14 | 15 |
| 15 const char* kSyncDevServerUrl = "https://clients4.google.com/chrome-sync/dev"; | 16 const char* kSyncDevServerUrl = "https://clients4.google.com/chrome-sync/dev"; |
| 16 } // namespace internal | 17 } // namespace internal |
| 17 | 18 |
| 18 GURL GetSyncServiceURL(const base::CommandLine& command_line, | 19 GURL GetSyncServiceURL(const base::CommandLine& command_line, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 user_agent += system; | 70 user_agent += system; |
| 70 user_agent += version_info::GetVersionNumber(); | 71 user_agent += version_info::GetVersionNumber(); |
| 71 user_agent += " (" + version_info::GetLastChange() + ")"; | 72 user_agent += " (" + version_info::GetLastChange() + ")"; |
| 72 if (!version_info::IsOfficialBuild()) { | 73 if (!version_info::IsOfficialBuild()) { |
| 73 user_agent += "-devel"; | 74 user_agent += "-devel"; |
| 74 } else { | 75 } else { |
| 75 user_agent += " channel(" + version_info::GetChannelString(channel) + ")"; | 76 user_agent += " channel(" + version_info::GetChannelString(channel) + ")"; |
| 76 } | 77 } |
| 77 return user_agent; | 78 return user_agent; |
| 78 } | 79 } |
| OLD | NEW |