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

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: 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 c62c64a8498da3516b262bbca65a9fbb712c4046..6d9fe306e7d26c82ea3471cdb4b94a6b94a51747 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;

Powered by Google App Engine
This is Rietveld 408576698