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

Unified Diff: ppapi/cpp/trusted/browser_font_trusted.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/resource.cc ('k') | ppapi/cpp/trusted/file_chooser_trusted.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/trusted/browser_font_trusted.cc
diff --git a/ppapi/cpp/trusted/browser_font_trusted.cc b/ppapi/cpp/trusted/browser_font_trusted.cc
index 8bea86a8f4d45a3e54fa242be780b6d679127b89..b9f2b0d6149181acdba1f712992308d13d86b78c 100644
--- a/ppapi/cpp/trusted/browser_font_trusted.cc
+++ b/ppapi/cpp/trusted/browser_font_trusted.cc
@@ -158,7 +158,7 @@ BrowserFont_Trusted& BrowserFont_Trusted::operator=(
Var BrowserFont_Trusted::GetFontFamilies(Instance* instance) {
if (!has_interface<PPB_Font_Dev>())
return Var();
- return Var(Var::PassRef(),
+ return Var(PASS_REF,
get_interface<PPB_Font_Dev>()->GetFontFamilies(
instance->pp_instance()));
}
@@ -179,7 +179,7 @@ bool BrowserFont_Trusted::Describe(
BrowserFontMetricsToFontMetrics(metrics)))
return false;
}
- description->face_ = Var(Var::PassRef(),
+ description->face_ = Var(PASS_REF,
description->pp_font_description_.face);
return true;
}
« no previous file with comments | « ppapi/cpp/resource.cc ('k') | ppapi/cpp/trusted/file_chooser_trusted.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698