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

Side by Side Diff: components/sync_driver/sync_util.cc

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 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
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 }
OLDNEW
« no previous file with comments | « components/sync_driver/sync_stopped_reporter_unittest.cc ('k') | components/sync_driver/system_encryptor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698