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

Unified Diff: content/common/user_agent_util.cc

Issue 186883002: Move user_agent code from webkit/ to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/common/user_agent_util.cc
diff --git a/webkit/common/user_agent/user_agent_util.cc b/content/common/user_agent_util.cc
similarity index 95%
rename from webkit/common/user_agent/user_agent_util.cc
rename to content/common/user_agent_util.cc
index 35e20162e68af1c299f0433b95efbcb305a87c51..80975aac543ca381a08e2657a5513122c6cff979 100644
--- a/webkit/common/user_agent/user_agent_util.cc
+++ b/content/common/user_agent_util.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "webkit/common/user_agent/user_agent_util.h"
+#include "content/public/common/user_agent_util.h"
#if defined(OS_POSIX) && !defined(OS_MACOSX)
#include <sys/utsname.h>
@@ -20,7 +20,7 @@
// Generated
#include "webkit_version.h" // NOLINT
-namespace webkit_glue {
+namespace content {
std::string GetWebKitVersion() {
return base::StringPrintf("%d.%d (%s)",
@@ -166,8 +166,8 @@ std::string BuildUserAgentFromProduct(const std::string& product) {
#endif
std::string os_info;
- base::StringAppendF(&os_info, "%s%s", kUserAgentPlatform,
- webkit_glue::BuildOSCpuInfo().c_str());
+ base::StringAppendF(
+ &os_info, "%s%s", kUserAgentPlatform, BuildOSCpuInfo().c_str());
return BuildUserAgentFromOSAndProduct(os_info, product);
}
@@ -189,4 +189,4 @@ std::string BuildUserAgentFromOSAndProduct(const std::string& os_info,
return user_agent;
}
-} // namespace webkit_glue
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698