Chromium Code Reviews| Index: webkit/glue/user_agent.cc |
| diff --git a/webkit/glue/user_agent.cc b/webkit/glue/user_agent.cc |
| index cc03719ebccd87b04909c9c3278dac76d509a692..0a3fec16d2f5ce8d1c1fb0c0e4ef1f9c79da52fa 100644 |
| --- a/webkit/glue/user_agent.cc |
| +++ b/webkit/glue/user_agent.cc |
| @@ -20,6 +20,10 @@ |
| // Generated |
| #include "webkit_version.h" // NOLINT |
| +namespace { |
| +const char kOsOverrideForTabletSite[] = "Linux; Android"; |
|
gone
2012/09/06 18:08:32
Change this to "Linux; Android 4.0.3" as per the e
sschmitz
2012/09/06 18:52:45
Ok, thanks for your dilligence on this.
Done.
|
| +} |
| + |
| namespace webkit_glue { |
| std::string GetWebKitVersion() { |
| @@ -179,4 +183,11 @@ std::string BuildUserAgentFromOSAndProduct(const std::string& os_info, |
| return user_agent; |
| } |
| +std::string BuildUserAgentOverrideForTabletSiteFromProduct( |
| + const std::string& product) |
| +{ |
|
gone
2012/09/06 18:08:32
Brace needs to go on the previous line.
sschmitz
2012/09/06 18:52:45
Old habits die hard ;-)
Done
|
| + return BuildUserAgentFromOSAndProduct(kOsOverrideForTabletSite, |
| + product); |
| +} |
| + |
| } // namespace webkit_glue |