diff options
author | dpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-20 21:51:32 +0000 |
---|---|---|
committer | dpranke@chromium.org <dpranke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-20 21:51:32 +0000 |
commit | 18ad677133507343592fab4682510e8d863911c9 (patch) | |
tree | bdf8e575acfc97f651f555c04238018f8cc5bbb7 /content/renderer/render_thread.h | |
parent | ce9ca28e14bc8e02678c02df977bae0a85fba040 (diff) | |
download | chromium_src-18ad677133507343592fab4682510e8d863911c9.zip chromium_src-18ad677133507343592fab4682510e8d863911c9.tar.gz chromium_src-18ad677133507343592fab4682510e8d863911c9.tar.bz2 |
move webkit_glue::GetWebKitLocale to content.
Currently chrome code calls webkit_glue::GetWebKitLocale, which is just
a static callback into content. This exposes that callback out of
content directly to fix the dependency inversion.
It doesn't appear that anything in webkit_glue actually needs this function, so I'm a bit puzzled as to why it's here (except perhaps for pre-content legacy reasons).
R=jam@chromium.org
BUG=90442
TEST=none
Review URL: http://codereview.chromium.org/7917005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102030 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/render_thread.h')
-rw-r--r-- | content/renderer/render_thread.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/content/renderer/render_thread.h b/content/renderer/render_thread.h index 8fb9e03..19863f0 100644 --- a/content/renderer/render_thread.h +++ b/content/renderer/render_thread.h @@ -141,6 +141,9 @@ class CONTENT_EXPORT RenderThread : public RenderThreadBase, // execution context (corresponding to WebFrame::frameForCurrentContext). static int32 RoutingIDForCurrentContext(); + // Returns the locale string to be used in WebKit. + static std::string GetLocale(); + // Overridden from RenderThreadBase. virtual bool Send(IPC::Message* msg); virtual void AddRoute(int32 routing_id, IPC::Channel::Listener* listener); |