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

Unified Diff: ppapi/native_client/src/trusted/plugin/plugin.cc

Issue 9381010: Convert resources to take an instance key instead of an Instance*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: USELESS PATCH TITLE Created 8 years, 10 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: ppapi/native_client/src/trusted/plugin/plugin.cc
diff --git a/ppapi/native_client/src/trusted/plugin/plugin.cc b/ppapi/native_client/src/trusted/plugin/plugin.cc
index 0034f26d571d2b92b5fbee34aa0962f9f4276592..c89daa0de1120a9ca8a585168410fab53b4b0c98 100644
--- a/ppapi/native_client/src/trusted/plugin/plugin.cc
+++ b/ppapi/native_client/src/trusted/plugin/plugin.cc
@@ -340,7 +340,7 @@ class PrintingAdapter : public pp::Printing_Dev {
PP_Resource image_data = ppp_printing_->PrintPages(plugin_->pp_instance(),
page_ranges,
page_range_count);
- return pp::ImageData(pp::ImageData::PassRef(), image_data);
+ return pp::ImageData(pp::PASS_REF, image_data);
}
return pp::Resource();
}
@@ -383,7 +383,7 @@ class SelectionAdapter : public pp::Selection_Dev {
if (ppp_selection_ != NULL) {
PP_Var var = ppp_selection_->GetSelectedText(plugin_->pp_instance(),
PP_FromBool(html));
- return pp::Var(pp::Var::PassRef(), var);
+ return pp::Var(pp::PASS_REF, var);
}
return pp::Var();
}
@@ -825,7 +825,7 @@ bool Plugin::Init(uint32_t argc, const char* argn[], const char* argv[]) {
// manifest. This takes into account the setting of <base> tags that
// precede the embed/object.
CHECK(url_util_ != NULL);
- pp::Var base_var = url_util_->GetDocumentURL(*this);
+ pp::Var base_var = url_util_->GetDocumentURL(this);
if (!base_var.is_string()) {
PLUGIN_PRINTF(("Plugin::Init (unable to find document url)\n"));
return false;
« no previous file with comments | « ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_testing_rpc_server.cc ('k') | ppapi/ppapi_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698