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

Unified Diff: webkit/plugins/ppapi/ppapi_plugin_instance.cc

Issue 8826011: Remove PP_Module from parameters for PPB_Var.VarFromUtf8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix indentation. Created 9 years 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: webkit/plugins/ppapi/ppapi_plugin_instance.cc
diff --git a/webkit/plugins/ppapi/ppapi_plugin_instance.cc b/webkit/plugins/ppapi/ppapi_plugin_instance.cc
index f116d6c47af38c8334094379a1a206f86315d8c9..24c25fd8e6dc48922d470fd665ada757d052d2cc 100644
--- a/webkit/plugins/ppapi/ppapi_plugin_instance.cc
+++ b/webkit/plugins/ppapi/ppapi_plugin_instance.cc
@@ -1692,7 +1692,7 @@ PP_Var PluginInstance::ExecuteScript(PP_Instance instance,
// a reference to ourselves so that we can still process the result after the
// WebBindings::evaluate() below.
scoped_refptr<PluginInstance> ref(this);
- TryCatch try_catch(module()->pp_module(), exception);
+ TryCatch try_catch(exception);
if (try_catch.has_exception())
return PP_MakeUndefined();
@@ -1731,7 +1731,7 @@ PP_Var PluginInstance::ExecuteScript(PP_Instance instance,
PP_Var PluginInstance::GetDefaultCharSet(PP_Instance instance) {
std::string encoding = delegate()->GetDefaultEncoding();
- return StringVar::StringToPPVar(module()->pp_module(), encoding);
+ return StringVar::StringToPPVar(encoding);
}
void PluginInstance::Log(PP_Instance instance,
@@ -1896,7 +1896,6 @@ PP_Var PluginInstance::ResolveRelativeToDocument(
WebElement plugin_element = container()->element();
GURL document_url = plugin_element.document().baseURL();
return ::ppapi::URLUtilImpl::GenerateURLReturn(
- module()->pp_module(),
document_url.Resolve(relative_string->value()),
components);
}
@@ -1933,15 +1932,13 @@ PP_Bool PluginInstance::DocumentCanAccessDocument(PP_Instance instance,
PP_Var PluginInstance::GetDocumentURL(PP_Instance instance,
PP_URLComponents_Dev* components) {
WebKit::WebDocument document = container()->element().document();
- return ::ppapi::URLUtilImpl::GenerateURLReturn(module()->pp_module(),
- document.url(), components);
+ return ::ppapi::URLUtilImpl::GenerateURLReturn(document.url(), components);
}
PP_Var PluginInstance::GetPluginInstanceURL(
PP_Instance instance,
PP_URLComponents_Dev* components) {
- return ::ppapi::URLUtilImpl::GenerateURLReturn(module()->pp_module(),
- plugin_url_, components);
+ return ::ppapi::URLUtilImpl::GenerateURLReturn(plugin_url_, components);
}
void PluginInstance::DoSetCursor(WebCursorInfo* cursor) {

Powered by Google App Engine
This is Rietveld 408576698