Index: chrome/browser/plugin_process_host.cc |
diff --git a/chrome/browser/plugin_process_host.cc b/chrome/browser/plugin_process_host.cc |
index ce10aa019f07f254a7bd61027806a4dce98a6eb8..eef30ad449a9b3d92dc870f3cf25a1b9947a5c58 100644 |
--- a/chrome/browser/plugin_process_host.cc |
+++ b/chrome/browser/plugin_process_host.cc |
@@ -319,6 +319,10 @@ void PluginProcessHost::OnChannelError() { |
CancelRequests(); |
} |
+bool PluginProcessHost::CanShutdown() { |
+ return sent_requests_.empty(); |
+} |
+ |
void PluginProcessHost::CancelRequests() { |
for (size_t i = 0; i < pending_requests_.size(); ++i) |
pending_requests_[i]->OnError(); |