From f4eaf7b97ff394ed43b4dcfbc3d0fc5742a42c0c Mon Sep 17 00:00:00 2001 From: "phajdan.jr@chromium.org" Date: Thu, 28 Feb 2013 22:00:40 +0000 Subject: content: convert child process notifications to observer usage BUG=170921 Review URL: https://codereview.chromium.org/12212089 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185337 0039d316-1c4b-4281-b951-d872f2087c98 --- content/browser/plugin_process_host.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'content/browser/plugin_process_host.cc') diff --git a/content/browser/plugin_process_host.cc b/content/browser/plugin_process_host.cc index 62be9db7..be2e558 100644 --- a/content/browser/plugin_process_host.cc +++ b/content/browser/plugin_process_host.cc @@ -342,7 +342,10 @@ void PluginProcessHost::CancelPendingRequestsForResourceContext( } void PluginProcessHost::OpenChannelToPlugin(Client* client) { - process_->Notify(NOTIFICATION_CHILD_INSTANCE_CREATED); + BrowserThread::PostTask( + BrowserThread::UI, FROM_HERE, + base::Bind(&BrowserChildProcessHostImpl::NotifyProcessInstanceCreated, + process_->GetData())); client->SetPluginInfo(info_); if (process_->GetHost()->IsChannelOpening()) { // The channel is already in the process of being opened. Put -- cgit v1.1