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

Unified Diff: content/browser/plugin_service_impl.cc

Issue 9981015: Add an interface for Flash to clear its data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
Index: content/browser/plugin_service_impl.cc
diff --git a/content/browser/plugin_service_impl.cc b/content/browser/plugin_service_impl.cc
index 65c9631a9d27ff2d201d4cef437bd4237ffa43a8..99924b14420e42b8b8c7aad34138d6e90260cd12 100644
--- a/content/browser/plugin_service_impl.cc
+++ b/content/browser/plugin_service_impl.cc
@@ -337,20 +337,26 @@ void PluginServiceImpl::OpenChannelToPpapiPlugin(
PpapiPluginProcessHost::PluginClient* client) {
PpapiPluginProcessHost* plugin_host = FindOrStartPpapiPluginProcess(
path, client);
- if (plugin_host)
+ if (plugin_host) {
plugin_host->OpenChannelToPlugin(client);
- else // Send error.
- client->OnChannelOpened(base::kNullProcessHandle, IPC::ChannelHandle());
+ } else {
+ // Send error.
+ client->OnPpapiChannelOpened(base::kNullProcessHandle,
+ IPC::ChannelHandle());
+ }
}
void PluginServiceImpl::OpenChannelToPpapiBroker(
const FilePath& path,
PpapiPluginProcessHost::BrokerClient* client) {
PpapiPluginProcessHost* plugin_host = FindOrStartPpapiBrokerProcess(path);
- if (plugin_host)
+ if (plugin_host) {
plugin_host->OpenChannelToPlugin(client);
- else // Send error.
- client->OnChannelOpened(base::kNullProcessHandle, IPC::ChannelHandle());
+ } else {
+ // Send error.
+ client->OnPpapiChannelOpened(base::kNullProcessHandle,
+ IPC::ChannelHandle());
+ }
}
void PluginServiceImpl::CancelOpenChannelToNpapiPlugin(
« no previous file with comments | « content/browser/plugin_data_remover_impl_browsertest.cc ('k') | content/browser/ppapi_plugin_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698