Commit 3b96b7b5 authored by jam@chromium.org's avatar jam@chromium.org

Remove some code left over after r191766.

R=kristianm@chromium.org, pliard@chromium.org

Review URL: https://codereview.chromium.org/136533005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244541 0039d316-1c4b-4281-b951-d872f2087c98
parent b763d40e
......@@ -62,7 +62,6 @@ class ChromeRenderProcessObserver : public content::RenderProcessObserver {
const std::string& group_name);
void OnGetV8HeapStats();
void OnPurgeMemory();
void OnToggleWebKitSharedTimer(bool suspend);
static bool is_incognito_process_;
scoped_ptr<content::ResourceDispatcherDelegate> resource_delegate_;
......
......@@ -111,9 +111,6 @@ class CONTENT_EXPORT RenderThread : public IPC::Sender {
virtual void SetIdleNotificationDelayInMs(
int64 idle_notification_delay_in_ms) = 0;
// Suspend/resume the webkit timer for this renderer.
virtual void ToggleWebKitSharedTimer(bool suspend) = 0;
virtual void UpdateHistograms(int sequence_number) = 0;
// Post task to all worker threads. Returns number of workers.
......
......@@ -169,9 +169,6 @@ void MockRenderThread::SetIdleNotificationDelayInMs(
int64 idle_notification_delay_in_ms) {
}
void MockRenderThread::ToggleWebKitSharedTimer(bool suspend) {
}
void MockRenderThread::UpdateHistograms(int sequence_number) {
}
......
......@@ -66,7 +66,6 @@ class MockRenderThread : public RenderThread {
virtual int64 GetIdleNotificationDelayInMs() const OVERRIDE;
virtual void SetIdleNotificationDelayInMs(
int64 idle_notification_delay_in_ms) OVERRIDE;
virtual void ToggleWebKitSharedTimer(bool suspend) OVERRIDE;
virtual void UpdateHistograms(int sequence_number) OVERRIDE;
virtual int PostTaskToAllWebWorkers(const base::Closure& closure) OVERRIDE;
virtual bool ResolveProxy(const GURL& url, std::string* proxy_list) OVERRIDE;
......
......@@ -847,17 +847,6 @@ void RenderThreadImpl::SetIdleNotificationDelayInMs(
idle_notification_delay_in_ms_ = idle_notification_delay_in_ms;
}
void RenderThreadImpl::ToggleWebKitSharedTimer(bool suspend) {
if (suspend_webkit_shared_timer_) {
EnsureWebKitInitialized();
if (suspend) {
webkit_platform_support_->SuspendSharedTimer();
} else {
webkit_platform_support_->ResumeSharedTimer();
}
}
}
void RenderThreadImpl::UpdateHistograms(int sequence_number) {
child_histogram_message_filter()->SendHistograms(sequence_number);
}
......@@ -1287,7 +1276,14 @@ void RenderThreadImpl::OnSetRendererProcessID(base::ProcessId process_id) {
#if defined(OS_ANDROID)
void RenderThreadImpl::OnSetWebKitSharedTimersSuspended(bool suspend) {
ToggleWebKitSharedTimer(suspend);
if (suspend_webkit_shared_timer_) {
EnsureWebKitInitialized();
if (suspend) {
webkit_platform_support_->SuspendSharedTimer();
} else {
webkit_platform_support_->ResumeSharedTimer();
}
}
}
#endif
......
......@@ -143,7 +143,6 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread,
virtual int64 GetIdleNotificationDelayInMs() const OVERRIDE;
virtual void SetIdleNotificationDelayInMs(
int64 idle_notification_delay_in_ms) OVERRIDE;
virtual void ToggleWebKitSharedTimer(bool suspend) OVERRIDE;
virtual void UpdateHistograms(int sequence_number) OVERRIDE;
virtual int PostTaskToAllWebWorkers(const base::Closure& closure) OVERRIDE;
virtual bool ResolveProxy(const GURL& url, std::string* proxy_list) OVERRIDE;
......
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