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

Unified Diff: ppapi/proxy/interface_list.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/interface_list.h ('k') | ppapi/proxy/media_stream_audio_track_resource.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/interface_list.cc
diff --git a/ppapi/proxy/interface_list.cc b/ppapi/proxy/interface_list.cc
index 8fb4cfe12ab9fdfb74a75547cfe39ff30891d4a3..b2359742b950524aa00a8dba3b3497a092a8436b 100644
--- a/ppapi/proxy/interface_list.cc
+++ b/ppapi/proxy/interface_list.cc
@@ -398,15 +398,15 @@ void InterfaceList::AddPPB(const char* name,
Permission perm) {
DCHECK(name_to_browser_info_.find(name) == name_to_browser_info_.end());
name_to_browser_info_.add(
- name, scoped_ptr<InterfaceInfo>(new InterfaceInfo(iface, perm)));
+ name, std::unique_ptr<InterfaceInfo>(new InterfaceInfo(iface, perm)));
}
void InterfaceList::AddPPP(const char* name,
const void* iface) {
DCHECK(name_to_plugin_info_.find(name) == name_to_plugin_info_.end());
- name_to_plugin_info_.add(
- name,
- scoped_ptr<InterfaceInfo>(new InterfaceInfo(iface, PERMISSION_NONE)));
+ name_to_plugin_info_.add(name,
+ std::unique_ptr<InterfaceInfo>(
+ new InterfaceInfo(iface, PERMISSION_NONE)));
}
int InterfaceList::HashInterfaceName(const std::string& name) {
« no previous file with comments | « ppapi/proxy/interface_list.h ('k') | ppapi/proxy/media_stream_audio_track_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698