| Index: chrome/common/chrome_content_client.cc
|
| diff --git a/chrome/common/chrome_content_client.cc b/chrome/common/chrome_content_client.cc
|
| index 52d9fc41b3fdc331b2d64b8478a9a0df6790b45e..0faef16f11db62b452f0e63d67e1de49807f4309 100644
|
| --- a/chrome/common/chrome_content_client.cc
|
| +++ b/chrome/common/chrome_content_client.cc
|
| @@ -359,18 +359,11 @@ bool ChromeContentClient::CanHandleWhileSwappedOut(
|
| return false;
|
| }
|
|
|
| -std::string ChromeContentClient::GetUserAgent(bool* overriding) const {
|
| - if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kUserAgent)) {
|
| - *overriding = true;
|
| - return CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
|
| - switches::kUserAgent);
|
| - } else {
|
| - *overriding = false;
|
| - chrome::VersionInfo version_info;
|
| - std::string product("Chrome/");
|
| - product += version_info.is_valid() ? version_info.Version() : "0.0.0.0";
|
| - return webkit_glue::BuildUserAgentFromProduct(product);
|
| - }
|
| +std::string ChromeContentClient::GetUserAgent() const {
|
| + chrome::VersionInfo version_info;
|
| + std::string product("Chrome/");
|
| + product += version_info.is_valid() ? version_info.Version() : "0.0.0.0";
|
| + return webkit_glue::BuildUserAgentFromProduct(product);
|
| }
|
|
|
| string16 ChromeContentClient::GetLocalizedString(int message_id) const {
|
|
|