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

Unified Diff: chrome/browser/ui/browser_commands.cc

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 | « chrome/browser/feedback/feedback_util.cc ('k') | chrome/browser/ui/webui/help/help_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_commands.cc
diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc
index 8d73b2b1e313c32c08908e676e88a04336fec690..6519910c49cccf8f9dd8bb19b796ab4e7d46b875 100644
--- a/chrome/browser/ui/browser_commands.cc
+++ b/chrome/browser/ui/browser_commands.cc
@@ -77,10 +77,10 @@
#include "content/public/common/renderer_preferences.h"
#include "content/public/common/url_constants.h"
#include "content/public/common/url_utils.h"
+#include "content/public/common/user_agent.h"
#include "extensions/browser/extension_system.h"
#include "net/base/escape.h"
#include "ui/events/keycodes/keyboard_codes.h"
-#include "webkit/common/user_agent/user_agent_util.h"
#if defined(OS_WIN)
#include "chrome/browser/ui/metro_pin_tab_helper_win.h"
@@ -1098,9 +1098,8 @@ void ToggleRequestTabletSite(Browser* browser) {
std::string product;
if (version_info.is_valid())
product = version_info.ProductNameAndVersionForUserAgent();
- current_tab->SetUserAgentOverride(
- webkit_glue::BuildUserAgentFromOSAndProduct(
- kOsOverrideForTabletSite, product));
+ current_tab->SetUserAgentOverride(content::BuildUserAgentFromOSAndProduct(
+ kOsOverrideForTabletSite, product));
}
controller.ReloadOriginalRequestURL(true);
}
« no previous file with comments | « chrome/browser/feedback/feedback_util.cc ('k') | chrome/browser/ui/webui/help/help_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698