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

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

Issue 384793003: PPAPI: Remove content/renderer/pepper/common.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/pepper_graphics_2d_host.cc ('k') | content/renderer/pepper/plugin_module.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_plugin_instance_impl.cc
diff --git a/content/renderer/pepper/pepper_plugin_instance_impl.cc b/content/renderer/pepper/pepper_plugin_instance_impl.cc
index 400fb1e5e560e806b8f41822a4801de88e8449e3..967f0ad66a1b7ad6abcbd1be1617db9f0d13f723 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc
@@ -26,7 +26,6 @@
#include "content/public/renderer/content_renderer_client.h"
#include "content/renderer/compositor_bindings/web_layer_impl.h"
#include "content/renderer/gpu/render_widget_compositor.h"
-#include "content/renderer/pepper/common.h"
#include "content/renderer/pepper/content_decryptor_delegate.h"
#include "content/renderer/pepper/event_conversion.h"
#include "content/renderer/pepper/fullscreen_container.h"
@@ -2848,7 +2847,7 @@ PP_Bool PepperPluginInstanceImpl::DocumentCanRequest(PP_Instance instance,
if (!gurl.is_valid())
return PP_FALSE;
- return BoolToPPBool(security_origin.canRequest(gurl));
+ return PP_FromBool(security_origin.canRequest(gurl));
}
PP_Bool PepperPluginInstanceImpl::DocumentCanAccessDocument(
@@ -2862,7 +2861,7 @@ PP_Bool PepperPluginInstanceImpl::DocumentCanAccessDocument(
if (!SecurityOriginForInstance(instance, &target_origin))
return PP_FALSE;
- return BoolToPPBool(our_origin.canAccess(target_origin));
+ return PP_FromBool(our_origin.canAccess(target_origin));
}
PP_Var PepperPluginInstanceImpl::GetDocumentURL(
« no previous file with comments | « content/renderer/pepper/pepper_graphics_2d_host.cc ('k') | content/renderer/pepper/plugin_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698