Index: content/browser/ppapi_plugin_process_host.cc |
diff --git a/content/browser/ppapi_plugin_process_host.cc b/content/browser/ppapi_plugin_process_host.cc |
index bb4449c46f83ab27c680239f7fde4550afce58d5..4a68ad2666d5157f2af2f7a277dd930e789e43f7 100644 |
--- a/content/browser/ppapi_plugin_process_host.cc |
+++ b/content/browser/ppapi_plugin_process_host.cc |
@@ -137,6 +137,16 @@ void PpapiPluginProcessHost::DidDeleteOutOfProcessInstance( |
// That's OK, we can just ignore this message. |
} |
+// static |
+void PpapiPluginProcessHost::FindByName( |
+ const string16& name, |
+ std::vector<PpapiPluginProcessHost*>* hosts) { |
+ for (PpapiPluginProcessHostIterator iter; !iter.Done(); ++iter) { |
+ if (iter->process_.get() && iter->process_->GetData().name == name) |
+ hosts->push_back(*iter); |
+ } |
+} |
+ |
bool PpapiPluginProcessHost::Send(IPC::Message* message) { |
return process_->Send(message); |
} |