1diff --git components/embedder_support/user_agent_utils.cc components/embedder_support/user_agent_utils.cc 2index 4c38233047000..4601ad9df744d 100644 3--- components/embedder_support/user_agent_utils.cc 4+++ components/embedder_support/user_agent_utils.cc 5@@ -15,6 +15,7 @@ 6 #include "base/version.h" 7 #include "build/branding_buildflags.h" 8 #include "build/build_config.h" 9+#include "cef/libcef/common/cef_switches.h" 10 #include "components/embedder_support/pref_names.h" 11 #include "components/embedder_support/switches.h" 12 #include "components/policy/core/common/policy_pref_names.h" 13@@ -353,6 +354,12 @@ std::string GetMajorVersionForUserAgentString( 14 15 std::string GetProduct(const bool allow_version_override, 16 ForceMajorVersionToMinorPosition force_major_to_minor) { 17+ base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 18+ if (command_line->HasSwitch(switches::kUserAgentProductAndVersion)) { 19+ return command_line->GetSwitchValueASCII( 20+ switches::kUserAgentProductAndVersion); 21+ } 22+ 23 // FF Priority 1: force major version to 99 and minor version to major version 24 // number. 25 if (allow_version_override && 26