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

Unified Diff: ppapi/cpp/dev/device_ref_dev.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
« no previous file with comments | « ppapi/cpp/dev/device_ref_dev.h ('k') | ppapi/cpp/dev/file_chooser_dev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/device_ref_dev.cc
diff --git a/ppapi/cpp/dev/device_ref_dev.cc b/ppapi/cpp/dev/device_ref_dev.cc
index 4fc2bc5f25e5728b2ce51042aaf6fa260dc877ae..525739e16fc372dca877968c8e5d3f95f0757444 100644
--- a/ppapi/cpp/dev/device_ref_dev.cc
+++ b/ppapi/cpp/dev/device_ref_dev.cc
@@ -22,8 +22,8 @@ DeviceRef_Dev::DeviceRef_Dev() {
DeviceRef_Dev::DeviceRef_Dev(PP_Resource resource) : Resource(resource) {
}
-DeviceRef_Dev::DeviceRef_Dev(PassRef, PP_Resource resource) {
- PassRefFromConstructor(resource);
+DeviceRef_Dev::DeviceRef_Dev(PassRef, PP_Resource resource)
+ : Resource(PASS_REF, resource) {
}
DeviceRef_Dev::DeviceRef_Dev(const DeviceRef_Dev& other) : Resource(other) {
@@ -41,7 +41,7 @@ PP_DeviceType_Dev DeviceRef_Dev::GetType() const {
Var DeviceRef_Dev::GetName() const {
if (!has_interface<PPB_DeviceRef_Dev>())
return Var();
- return Var(Var::PassRef(),
+ return Var(PASS_REF,
get_interface<PPB_DeviceRef_Dev>()->GetName(pp_resource()));
}
« no previous file with comments | « ppapi/cpp/dev/device_ref_dev.h ('k') | ppapi/cpp/dev/file_chooser_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698