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

Unified Diff: content/renderer/pepper/ppb_buffer_impl.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
« no previous file with comments | « content/renderer/pepper/ppb_broker_impl.cc ('k') | content/renderer/pepper/ppb_file_ref_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/ppb_buffer_impl.cc
===================================================================
--- content/renderer/pepper/ppb_buffer_impl.cc (revision 214295)
+++ content/renderer/pepper/ppb_buffer_impl.cc (working copy)
@@ -9,10 +9,10 @@
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "content/renderer/pepper/common.h"
-#include "content/renderer/pepper/plugin_delegate.h"
#include "content/renderer/pepper/resource_helper.h"
#include "content/renderer/render_thread_impl.h"
#include "ppapi/c/dev/ppb_buffer_dev.h"
+#include "ppapi/c/pp_errors.h"
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_resource.h"
@@ -56,8 +56,7 @@
}
bool PPB_Buffer_Impl::Init(uint32_t size) {
- PluginDelegate* plugin_delegate = ResourceHelper::GetPluginDelegate(this);
- if (size == 0 || !plugin_delegate)
+ if (size == 0)
return false;
size_ = size;
shared_memory_.reset(
« no previous file with comments | « content/renderer/pepper/ppb_broker_impl.cc ('k') | content/renderer/pepper/ppb_file_ref_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698