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

Unified Diff: ppapi/proxy/flash_font_file_resource.cc

Issue 1864293002: Convert //ppapi to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more nullptr Created 4 years, 8 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/proxy/flash_font_file_resource.h ('k') | ppapi/proxy/gamepad_resource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/flash_font_file_resource.cc
diff --git a/ppapi/proxy/flash_font_file_resource.cc b/ppapi/proxy/flash_font_file_resource.cc
index 34c22eb574310ef3381a9c684ab72ba9dbe8b3b2..9e2e4724377794f65a82b6c9c960f7609e3c3880 100644
--- a/ppapi/proxy/flash_font_file_resource.cc
+++ b/ppapi/proxy/flash_font_file_resource.cc
@@ -6,6 +6,7 @@
#include <cstring>
+#include "base/memory/ptr_util.h"
#include "ppapi/c/pp_errors.h"
#include "ppapi/proxy/ppapi_messages.h"
@@ -72,7 +73,7 @@ const std::string* FlashFontFileResource::AddFontTable(
uint32_t table,
const std::string& contents) {
FontTableMap::const_iterator it =
- font_tables_.set(table, make_scoped_ptr(new std::string(contents)));
+ font_tables_.set(table, base::WrapUnique(new std::string(contents)));
return it->second;
}
« no previous file with comments | « ppapi/proxy/flash_font_file_resource.h ('k') | ppapi/proxy/gamepad_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698