summaryrefslogtreecommitdiffstats
path: root/content/renderer/renderer_glue.cc
diff options
context:
space:
mode:
authordpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-22 19:44:41 +0000
committerdpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-22 19:44:41 +0000
commit6568e6bb74a14bb6be71c1963c223ebe51eb4b4d (patch)
tree3855fdcd8a01d31682d566a9317b95a67b4fee3a /content/renderer/renderer_glue.cc
parent9d43e371e6c0b70b938575690f561f3742ad8397 (diff)
downloadchromium_src-6568e6bb74a14bb6be71c1963c223ebe51eb4b4d.zip
chromium_src-6568e6bb74a14bb6be71c1963c223ebe51eb4b4d.tar.gz
chromium_src-6568e6bb74a14bb6be71c1963c223ebe51eb4b4d.tar.bz2
Remove webkit_glue::BuildUserAgent(), change the contract in webkit_glue so that SetUserAgent() must be called before GetUserAgent().
This was causing a dependency inversion between webkit_support and its clients, and was needed for the content component build. For content users, calling SetContentClient() will automatically initialize the user agent (retrieved from client->GetUserAgent()). As a bonus, fixing this allowed me to re-test the "mimic_windows" code path and it looks like we no longer need it. R=jam@chromium.org,tony@chromium.org BUG=11136,90442 TEST=visit yahoo! mail using Chromium on Linux, ensure that we don't get an "unsupported browser" warning. Review URL: http://codereview.chromium.org/7922023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102336 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/renderer_glue.cc')
-rw-r--r--content/renderer/renderer_glue.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/content/renderer/renderer_glue.cc b/content/renderer/renderer_glue.cc
index c5f3dec..b7b2416 100644
--- a/content/renderer/renderer_glue.cc
+++ b/content/renderer/renderer_glue.cc
@@ -247,8 +247,4 @@ base::StringPiece GetDataResource(int resource_id) {
return content::GetContentClient()->GetDataResource(resource_id);
}
-std::string BuildUserAgent(bool mimic_windows) {
- return content::GetContentClient()->GetUserAgent(mimic_windows);
-}
-
} // namespace webkit_glue