Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/public/common/user_agent.h" | 5 #include "content/public/common/user_agent.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
| 9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
| 10 #include "base/sys_info.h" | 10 #include "base/sys_info.h" |
| 11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 12 | 12 |
| 13 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 13 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 14 #include <sys/utsname.h> | 14 #include <sys/utsname.h> |
| 15 #endif | 15 #endif |
| 16 | 16 |
| 17 #if defined(OS_WIN) | 17 #if defined(OS_WIN) |
| 18 #include "base/win/windows_version.h" | 18 #include "base/win/windows_version.h" |
| 19 #endif | 19 #endif |
| 20 | 20 |
| 21 // Generated | 21 // Generated |
| 22 #include "webkit_version.h" // NOLINT | 22 #include "build/util/webkit_version.h" // NOLINT |
|
brettw
2015/10/26 23:29:57
Actually, I think you can remove the NOLINT commen
tfarina
2015/10/27 20:12:23
Done.
| |
| 23 | 23 |
| 24 namespace content { | 24 namespace content { |
| 25 | 25 |
| 26 std::string GetWebKitVersion() { | 26 std::string GetWebKitVersion() { |
| 27 return base::StringPrintf("%d.%d (%s)", | 27 return base::StringPrintf("%d.%d (%s)", |
| 28 WEBKIT_VERSION_MAJOR, | 28 WEBKIT_VERSION_MAJOR, |
| 29 WEBKIT_VERSION_MINOR, | 29 WEBKIT_VERSION_MINOR, |
| 30 WEBKIT_SVN_REVISION); | 30 WEBKIT_SVN_REVISION); |
| 31 } | 31 } |
| 32 | 32 |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 196 os_info.c_str(), | 196 os_info.c_str(), |
| 197 WEBKIT_VERSION_MAJOR, | 197 WEBKIT_VERSION_MAJOR, |
| 198 WEBKIT_VERSION_MINOR, | 198 WEBKIT_VERSION_MINOR, |
| 199 product.c_str(), | 199 product.c_str(), |
| 200 WEBKIT_VERSION_MAJOR, | 200 WEBKIT_VERSION_MAJOR, |
| 201 WEBKIT_VERSION_MINOR); | 201 WEBKIT_VERSION_MINOR); |
| 202 return user_agent; | 202 return user_agent; |
| 203 } | 203 } |
| 204 | 204 |
| 205 } // namespace content | 205 } // namespace content |
| OLD | NEW |