Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(892)

Unified Diff: content/browser/android/content_view_statics.cc

Issue 341583003: [Android] Allow Disconnected RVH to suspend the shared timer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/content_view_statics.cc
diff --git a/content/browser/android/content_view_statics.cc b/content/browser/android/content_view_statics.cc
index b6cfde1994e00aef70b738de245456fa7f901d49..00b5600493cbdb861ca28cf705669d264014cc92 100644
--- a/content/browser/android/content_view_statics.cc
+++ b/content/browser/android/content_view_statics.cc
@@ -60,11 +60,9 @@ class SuspendedProcessWatcher : public content::RenderProcessHostObserver {
content::RenderProcessHost::AllHostsIterator());
!i.IsAtEnd(); i.Advance()) {
content::RenderProcessHost* host = i.GetCurrentValue();
- if (host->HasConnection()) {
Yaron 2014/06/18 00:41:17 This was done per Grace's comment: https://coderev
- host->AddObserver(this);
- host->Send(new ViewMsg_SetWebKitSharedTimersSuspended(true));
- suspended_processes_.push_back(host->GetID());
- }
+ host->AddObserver(this);
+ host->Send(new ViewMsg_SetWebKitSharedTimersSuspended(true));
+ suspended_processes_.push_back(host->GetID());
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698