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

Unified Diff: content/common/user_agent_ios.mm

Issue 186883002: Move user_agent code from webkit/ to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm build directory Created 6 years, 9 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
« no previous file with comments | « content/common/user_agent.cc ('k') | content/content.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/user_agent_ios.mm
diff --git a/webkit/common/user_agent/user_agent_util_ios.mm b/content/common/user_agent_ios.mm
similarity index 88%
rename from webkit/common/user_agent/user_agent_util_ios.mm
rename to content/common/user_agent_ios.mm
index 6a42c5133a022ed93d18d7d418c2db9659466694..ef8c298b244c12cc417ccba5c6dbccc6af305421 100644
--- a/webkit/common/user_agent/user_agent_util_ios.mm
+++ b/content/common/user_agent_ios.mm
@@ -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.h"
#import <UIKit/UIKit.h>
@@ -59,7 +59,7 @@ const UAVersions& GetUAVersionsForCurrentOS() {
} // namespace
-namespace webkit_glue {
+namespace content {
std::string BuildOSCpuInfo() {
int32 os_major_version = 0;
@@ -114,17 +114,16 @@ std::string BuildUserAgentFromProduct(const std::string& product) {
UAVersions ua_versions = GetUAVersionsForCurrentOS();
std::string user_agent;
- base::StringAppendF(
- &user_agent,
- "Mozilla/5.0 (%s) AppleWebKit/%s"
- " (KHTML, like Gecko) %s Mobile/%s Safari/%s",
- webkit_glue::BuildOSCpuInfo().c_str(),
- ua_versions.webkit_version_string,
- product.c_str(),
- kernel_version,
- ua_versions.safari_version_string);
+ base::StringAppendF(&user_agent,
+ "Mozilla/5.0 (%s) AppleWebKit/%s"
+ " (KHTML, like Gecko) %s Mobile/%s Safari/%s",
+ BuildOSCpuInfo().c_str(),
+ ua_versions.webkit_version_string,
+ product.c_str(),
+ kernel_version,
+ ua_versions.safari_version_string);
return user_agent;
}
-} // namespace webkit_glue
+} // namespace content
« no previous file with comments | « content/common/user_agent.cc ('k') | content/content.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698