Update the user agent to request the mobile version site.

When we requeste a tab's mobile version site, we overwrite the user
agent's OS to Android OS so that the site can use its mobile version
layout. In this CL, when overwriting the user agent
- Update the Android version from Android 4.0.3 to Android 9
- Add "Chrome tablet" into its OS string
- Change product name from "Chrome" to "Chrome Mobile"
to increase the likelihood of sites adopting the user agent and
displaying the mobile version sites.

Bug: 953577
Change-Id: Ib72bd7abb1fa05dbcf9861b1d4d7ff8552c1f01d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1637649
Commit-Queue: Xiaoqian Dai <[email protected]>
Reviewed-by: Elly Fong-Jones <[email protected]>
Cr-Commit-Position: refs/heads/master@{#665168}
diff --git a/chrome/browser/ui/browser_commands.h b/chrome/browser/ui/browser_commands.h
index ac209028..6fb386e 100644
--- a/chrome/browser/ui/browser_commands.h
+++ b/chrome/browser/ui/browser_commands.h
@@ -159,6 +159,10 @@
 bool CanRequestTabletSite(content::WebContents* current_tab);
 bool IsRequestingTabletSite(Browser* browser);
 void ToggleRequestTabletSite(Browser* browser);
+// Overwrite the user agent's OS with Android OS so that the web content is
+// using its mobile version layout. Note it won't take effect until the web
+// contents is reloaded.
+void SetAndroidOsForTabletSite(content::WebContents* current_tab);
 void ToggleFullscreenMode(Browser* browser);
 void ClearCache(Browser* browser);
 bool IsDebuggerAttachedToCurrentTab(Browser* browser);