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

Unified Diff: content/renderer/pepper/host_globals.cc

Issue 21219002: Remove PluginDelegate completely. In a followup I'll rename PepperPluginDelegateImpl to something c… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 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/renderer/pepper/host_globals.cc
===================================================================
--- content/renderer/pepper/host_globals.cc (revision 214295)
+++ content/renderer/pepper/host_globals.cc (working copy)
@@ -13,6 +13,7 @@
#include "base/task_runner.h"
#include "content/renderer/pepper/pepper_plugin_instance_impl.h"
#include "content/renderer/pepper/plugin_module.h"
+#include "content/renderer/render_thread_impl.h"
#include "ppapi/shared_impl/api_id.h"
#include "ppapi/shared_impl/id_assignment.h"
#include "third_party/WebKit/public/platform/WebString.h"
@@ -185,12 +186,7 @@
}
base::TaskRunner* HostGlobals::GetFileTaskRunner(PP_Instance instance) {
- scoped_refptr<PepperPluginInstanceImpl> plugin_instance =
- GetInstance(instance);
- DCHECK(plugin_instance.get());
- scoped_refptr<base::MessageLoopProxy> message_loop =
- plugin_instance->delegate()->GetFileThreadMessageLoopProxy();
- return message_loop.get();
+ return RenderThreadImpl::current()->GetFileThreadMessageLoopProxy().get();
}
::ppapi::MessageLoopShared* HostGlobals::GetCurrentMessageLoop() {
« no previous file with comments | « content/renderer/pepper/fullscreen_container.h ('k') | content/renderer/pepper/host_var_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698