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

Unified Diff: content/renderer/pepper/renderer_ppapi_host_impl.cc

Issue 1873783003: Convert //content/renderer from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « content/renderer/pepper/renderer_ppapi_host_impl.h ('k') | content/renderer/pepper/resource_converter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/renderer_ppapi_host_impl.cc
diff --git a/content/renderer/pepper/renderer_ppapi_host_impl.cc b/content/renderer/pepper/renderer_ppapi_host_impl.cc
index ff8e819ec370c61887e9c5863c94ab648ec825c8..e694406dfe50c7cea5a2cee6baea57914b7a09da 100644
--- a/content/renderer/pepper/renderer_ppapi_host_impl.cc
+++ b/content/renderer/pepper/renderer_ppapi_host_impl.cc
@@ -48,7 +48,7 @@ RendererPpapiHostImpl::RendererPpapiHostImpl(
is_external_plugin_host_(false) {
// Hook the PpapiHost up to the dispatcher for out-of-process communication.
ppapi_host_.reset(new ppapi::host::PpapiHost(dispatcher, permissions));
- ppapi_host_->AddHostFactoryFilter(scoped_ptr<ppapi::host::HostFactory>(
+ ppapi_host_->AddHostFactoryFilter(std::unique_ptr<ppapi::host::HostFactory>(
new ContentRendererPepperHostFactory(this)));
dispatcher->AddFilter(ppapi_host_.get());
is_running_in_process_ = false;
@@ -63,7 +63,7 @@ RendererPpapiHostImpl::RendererPpapiHostImpl(
in_process_router_.reset(new PepperInProcessRouter(this));
ppapi_host_.reset(new ppapi::host::PpapiHost(
in_process_router_->GetRendererToPluginSender(), permissions));
- ppapi_host_->AddHostFactoryFilter(scoped_ptr<ppapi::host::HostFactory>(
+ ppapi_host_->AddHostFactoryFilter(std::unique_ptr<ppapi::host::HostFactory>(
new ContentRendererPepperHostFactory(this)));
is_running_in_process_ = true;
}
@@ -85,7 +85,7 @@ RendererPpapiHostImpl* RendererPpapiHostImpl::CreateOnModuleForOutOfProcess(
new RendererPpapiHostImpl(module, dispatcher, permissions);
// Takes ownership of pointer.
- module->SetRendererPpapiHost(scoped_ptr<RendererPpapiHostImpl>(result));
+ module->SetRendererPpapiHost(std::unique_ptr<RendererPpapiHostImpl>(result));
return result;
}
@@ -99,7 +99,7 @@ RendererPpapiHostImpl* RendererPpapiHostImpl::CreateOnModuleForInProcess(
new RendererPpapiHostImpl(module, permissions);
// Takes ownership of pointer.
- module->SetRendererPpapiHost(scoped_ptr<RendererPpapiHostImpl>(result));
+ module->SetRendererPpapiHost(std::unique_ptr<RendererPpapiHostImpl>(result));
return result;
}
@@ -117,10 +117,10 @@ RendererPpapiHostImpl* RendererPpapiHostImpl::GetForPPInstance(
return instance->module()->renderer_ppapi_host();
}
-scoped_ptr<ppapi::thunk::ResourceCreationAPI>
+std::unique_ptr<ppapi::thunk::ResourceCreationAPI>
RendererPpapiHostImpl::CreateInProcessResourceCreationAPI(
PepperPluginInstanceImpl* instance) {
- return scoped_ptr<ppapi::thunk::ResourceCreationAPI>(
+ return std::unique_ptr<ppapi::thunk::ResourceCreationAPI>(
new PepperInProcessResourceCreation(this, instance));
}
« no previous file with comments | « content/renderer/pepper/renderer_ppapi_host_impl.h ('k') | content/renderer/pepper/resource_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698