Commit 21a25bab authored by benm@chromium.org's avatar benm@chromium.org

[Android] Allow Disconnected RVH to suspend the shared timer.

For backwards compatibility in the Android WebView, it should be
possible to pause the shared timer before the WebView has been
navigated, the net effect being the initial navigation takes place
with the timer suspended.

This was introduced by http://src.chromium.org/viewvc/chrome?view=revision&revision=256153

BUG= 321610

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278239 0039d316-1c4b-4281-b951-d872f2087c98
parent c0a46334
...@@ -60,13 +60,11 @@ class SuspendedProcessWatcher : public content::RenderProcessHostObserver { ...@@ -60,13 +60,11 @@ class SuspendedProcessWatcher : public content::RenderProcessHostObserver {
content::RenderProcessHost::AllHostsIterator()); content::RenderProcessHost::AllHostsIterator());
!i.IsAtEnd(); i.Advance()) { !i.IsAtEnd(); i.Advance()) {
content::RenderProcessHost* host = i.GetCurrentValue(); content::RenderProcessHost* host = i.GetCurrentValue();
if (host->HasConnection()) {
host->AddObserver(this); host->AddObserver(this);
host->Send(new ViewMsg_SetWebKitSharedTimersSuspended(true)); host->Send(new ViewMsg_SetWebKitSharedTimersSuspended(true));
suspended_processes_.push_back(host->GetID()); suspended_processes_.push_back(host->GetID());
} }
} }
}
// Resumes timers in processes that were previously stopped. // Resumes timers in processes that were previously stopped.
void ResumeWebkitSharedTimers() { void ResumeWebkitSharedTimers() {
......
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