Index: content/browser/plugin_process_host.cc |
=================================================================== |
--- content/browser/plugin_process_host.cc (revision 121250) |
+++ content/browser/plugin_process_host.cc (working copy) |
@@ -355,11 +355,11 @@ |
// static |
void PluginProcessHost::CancelPendingRequestsForResourceContext( |
- const content::ResourceContext* context) { |
+ content::ResourceContext* context) { |
for (PluginProcessHostIterator host_it; !host_it.Done(); ++host_it) { |
PluginProcessHost* host = *host_it; |
for (size_t i = 0; i < host->pending_requests_.size(); ++i) { |
- if (&host->pending_requests_[i]->GetResourceContext() == context) { |
+ if (host->pending_requests_[i]->GetResourceContext() == context) { |
host->pending_requests_[i]->OnError(); |
host->pending_requests_.erase(host->pending_requests_.begin() + i); |
--i; |