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

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

Issue 8826011: Remove PP_Module from parameters for PPB_Var.VarFromUtf8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge 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
« no previous file with comments | « webkit/plugins/ppapi/ppb_transport_impl.cc ('k') | webkit/plugins/ppapi/ppb_var_deprecated_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_url_response_info_impl.cc
diff --git a/webkit/plugins/ppapi/ppb_url_response_info_impl.cc b/webkit/plugins/ppapi/ppb_url_response_info_impl.cc
index c788e992b229fe5a1140eac47a66d78ab4e5279d..cb96f8e3e1ca15d05428f870ef44cd10bb861fe4 100644
--- a/webkit/plugins/ppapi/ppb_url_response_info_impl.cc
+++ b/webkit/plugins/ppapi/ppb_url_response_info_impl.cc
@@ -12,7 +12,6 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLResponse.h"
#include "webkit/plugins/ppapi/common.h"
-#include "webkit/plugins/ppapi/plugin_module.h"
#include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
#include "webkit/plugins/ppapi/ppb_file_ref_impl.h"
#include "webkit/plugins/ppapi/resource_helper.h"
@@ -85,27 +84,23 @@ PPB_URLResponseInfo_API* PPB_URLResponseInfo_Impl::AsPPB_URLResponseInfo_API() {
}
PP_Var PPB_URLResponseInfo_Impl::GetProperty(PP_URLResponseProperty property) {
- PluginModule* plugin_module = ResourceHelper::GetPluginModule(this);
- if (!plugin_module)
- return PP_MakeUndefined();
- PP_Module pp_module = plugin_module->pp_module();
switch (property) {
case PP_URLRESPONSEPROPERTY_URL:
- return StringVar::StringToPPVar(pp_module, url_);
+ return StringVar::StringToPPVar(url_);
case PP_URLRESPONSEPROPERTY_REDIRECTURL:
if (IsRedirect(status_code_))
- return StringVar::StringToPPVar(pp_module, redirect_url_);
+ return StringVar::StringToPPVar(redirect_url_);
break;
case PP_URLRESPONSEPROPERTY_REDIRECTMETHOD:
if (IsRedirect(status_code_))
- return StringVar::StringToPPVar(pp_module, status_text_);
+ return StringVar::StringToPPVar(status_text_);
break;
case PP_URLRESPONSEPROPERTY_STATUSCODE:
return PP_MakeInt32(status_code_);
case PP_URLRESPONSEPROPERTY_STATUSLINE:
- return StringVar::StringToPPVar(pp_module, status_text_);
+ return StringVar::StringToPPVar(status_text_);
case PP_URLRESPONSEPROPERTY_HEADERS:
- return StringVar::StringToPPVar(pp_module, headers_);
+ return StringVar::StringToPPVar(headers_);
}
// The default is to return an undefined PP_Var.
return PP_MakeUndefined();
« no previous file with comments | « webkit/plugins/ppapi/ppb_transport_impl.cc ('k') | webkit/plugins/ppapi/ppb_var_deprecated_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698