diff options
Diffstat (limited to 'content/renderer/render_thread_impl.cc')
-rw-r--r-- | content/renderer/render_thread_impl.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc index d1108ad..afbf45f 100644 --- a/content/renderer/render_thread_impl.cc +++ b/content/renderer/render_thread_impl.cc @@ -185,6 +185,10 @@ RenderThreadImpl::RenderThreadImpl(const std::string& channel_name) void RenderThreadImpl::Init() { TRACE_EVENT_BEGIN_ETW("RenderThreadImpl::Init", 0, ""); + v8::V8::SetCounterFunction(base::StatsTable::FindLocation); + v8::V8::SetCreateHistogramFunction(CreateHistogram); + v8::V8::SetAddHistogramSampleFunction(AddHistogramSample); + #if defined(OS_MACOSX) || defined(OS_ANDROID) // On Mac and Android, the select popups are rendered by the browser. WebKit::WebView::setUseExternalPopupMenus(true); @@ -481,10 +485,6 @@ void RenderThreadImpl::EnsureWebKitInitialized() { if (webkit_platform_support_.get()) return; - v8::V8::SetCounterFunction(base::StatsTable::FindLocation); - v8::V8::SetCreateHistogramFunction(CreateHistogram); - v8::V8::SetAddHistogramSampleFunction(AddHistogramSample); - webkit_platform_support_.reset(new RendererWebKitPlatformSupportImpl); WebKit::initialize(webkit_platform_support_.get()); |