Index: chrome/browser/ui/browser_commands.cc |
diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc |
index 74ac03ae4787b047a44f2191c08a337baf8f658a..f74bb759321d48e9e441789c7bcedf57f0ae410e 100644 |
--- a/chrome/browser/ui/browser_commands.cc |
+++ b/chrome/browser/ui/browser_commands.cc |
@@ -50,7 +50,6 @@ |
#include "chrome/browser/ui/tabs/tab_strip_model.h" |
#include "chrome/browser/upgrade_detector.h" |
#include "chrome/common/chrome_switches.h" |
-#include "chrome/common/chrome_version_info.h" |
#include "chrome/common/content_restriction.h" |
#include "chrome/common/pref_names.h" |
#include "components/bookmarks/browser/bookmark_model.h" |
@@ -61,6 +60,7 @@ |
#include "components/translate/core/browser/language_state.h" |
#include "components/ui/zoom/page_zoom.h" |
#include "components/ui/zoom/zoom_controller.h" |
+#include "components/version_info/version_info.h" |
#include "components/web_modal/web_contents_modal_dialog_manager.h" |
#include "content/public/browser/devtools_agent_host.h" |
#include "content/public/browser/navigation_controller.h" |
@@ -1120,8 +1120,7 @@ void ToggleRequestTabletSite(Browser* browser) { |
entry->SetIsOverridingUserAgent(false); |
} else { |
entry->SetIsOverridingUserAgent(true); |
- chrome::VersionInfo version_info; |
- std::string product = version_info.ProductNameAndVersionForUserAgent(); |
+ std::string product = version_info::GetProductNameAndVersionForUserAgent(); |
current_tab->SetUserAgentOverride(content::BuildUserAgentFromOSAndProduct( |
kOsOverrideForTabletSite, product)); |
} |