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

Unified Diff: content/browser/worker_host/worker_process_host.cc

Issue 10545127: Added asserts to track crbug.com/124695 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/worker_host/worker_process_host.cc
diff --git a/content/browser/worker_host/worker_process_host.cc b/content/browser/worker_host/worker_process_host.cc
index b5e115c98d7c0e57479b883f0ea738aafd858a43..2af037a9d97ddde1b2becf2f8182347b273190cb 100644
--- a/content/browser/worker_host/worker_process_host.cc
+++ b/content/browser/worker_host/worker_process_host.cc
@@ -310,6 +310,7 @@ void WorkerProcessHost::CreateWorker(const WorkerInstance& instance) {
for (WorkerInstance::FilterList::const_iterator i =
instance.filters().begin();
i != instance.filters().end(); ++i) {
+ CHECK(i->first);
i->first->Send(new ViewMsg_WorkerCreated(i->second));
}
}
@@ -635,6 +636,7 @@ bool WorkerProcessHost::WorkerInstance::Matches(
void WorkerProcessHost::WorkerInstance::AddFilter(WorkerMessageFilter* filter,
int route_id) {
+ CHECK(filter);
if (!HasFilter(filter, route_id)) {
FilterInfo info(filter, route_id);
filters_.push_back(info);
« 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