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

Side by Side Diff: components/version_info/version_info.cc

Issue 1490113006: Add all components to "gn check". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years 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/exo/wayland/BUILD.gn ('k') | components/wifi_sync/BUILD.gn » ('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/version_info/version_info.h" 5 #include "components/version_info/version_info.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "components/version_info/version_info_values.h" 8 #include "components/version_info/version_info_values.h"
9 #include "grit/components_strings.h" 9 #include "grit/components_strings.h"
10 10
11 #if defined(USE_UNOFFICIAL_VERSION_NUMBER) 11 #if defined(USE_UNOFFICIAL_VERSION_NUMBER)
12 #include "ui/base/l10n/l10n_util.h" 12 #include "ui/base/l10n/l10n_util.h" // nogncheck
13 #endif // USE_UNOFFICIAL_VERSION_NUMBER 13 #endif // USE_UNOFFICIAL_VERSION_NUMBER
14 14
15 namespace version_info { 15 namespace version_info {
16 16
17 std::string GetProductNameAndVersionForUserAgent() { 17 std::string GetProductNameAndVersionForUserAgent() {
18 return "Chrome/" + GetVersionNumber(); 18 return "Chrome/" + GetVersionNumber();
19 } 19 }
20 20
21 std::string GetProductName() { 21 std::string GetProductName() {
22 return PRODUCT_NAME; 22 return PRODUCT_NAME;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 current_version += " "; 94 current_version += " ";
95 current_version += GetOSType(); 95 current_version += GetOSType();
96 current_version += ")"; 96 current_version += ")";
97 #endif // USE_UNOFFICIAL_VERSION_NUMBER 97 #endif // USE_UNOFFICIAL_VERSION_NUMBER
98 if (!modifier.empty()) 98 if (!modifier.empty())
99 current_version += " " + modifier; 99 current_version += " " + modifier;
100 return current_version; 100 return current_version;
101 } 101 }
102 102
103 } // namespace version_info 103 } // namespace version_info
OLDNEW
« no previous file with comments | « components/exo/wayland/BUILD.gn ('k') | components/wifi_sync/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698