Commit 334bb030 authored by sail@chromium.org's avatar sail@chromium.org

Cleanup: Remove RenderThreadImpl::RoutingIDForCurrentContext

This function isn't used anywhere.

BUG=


Review URL: https://chromiumcodereview.appspot.com/10824068

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148844 0039d316-1c4b-4281-b951-d872f2087c98
parent fa031244
...@@ -879,21 +879,6 @@ int32 RenderThreadImpl::CreateViewCommandBuffer( ...@@ -879,21 +879,6 @@ int32 RenderThreadImpl::CreateViewCommandBuffer(
return route_id; return route_id;
} }
int32 RenderThreadImpl::RoutingIDForCurrentContext() {
int32 routing_id = MSG_ROUTING_CONTROL;
if (v8::Context::InContext()) {
WebFrame* frame = WebFrame::frameForCurrentContext();
if (frame) {
RenderViewImpl* view = RenderViewImpl::FromWebView(frame->view());
if (view)
routing_id = view->routing_id();
}
} else {
DLOG(WARNING) << "Not called within a script context!";
}
return routing_id;
}
void RenderThreadImpl::DoNotSuspendWebKitSharedTimer() { void RenderThreadImpl::DoNotSuspendWebKitSharedTimer() {
suspend_webkit_shared_timer_ = false; suspend_webkit_shared_timer_ = false;
} }
......
...@@ -84,10 +84,6 @@ class CONTENT_EXPORT RenderThreadImpl : public content::RenderThread, ...@@ -84,10 +84,6 @@ class CONTENT_EXPORT RenderThreadImpl : public content::RenderThread,
explicit RenderThreadImpl(const std::string& channel_name); explicit RenderThreadImpl(const std::string& channel_name);
virtual ~RenderThreadImpl(); virtual ~RenderThreadImpl();
// Returns the routing ID of the RenderWidget containing the current script
// execution context (corresponding to WebFrame::frameForCurrentContext).
static int32 RoutingIDForCurrentContext();
// When initializing WebKit, ensure that any schemes needed for the content // When initializing WebKit, ensure that any schemes needed for the content
// module are registered properly. Static to allow sharing with tests. // module are registered properly. Static to allow sharing with tests.
static void RegisterSchemes(); static void RegisterSchemes();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment