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

Unified Diff: extensions/renderer/extension_injection_host.cc

Issue 1899083003: Convert //extensions/renderer from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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
Index: extensions/renderer/extension_injection_host.cc
diff --git a/extensions/renderer/extension_injection_host.cc b/extensions/renderer/extension_injection_host.cc
index 6e5b042287138889982ba380a8038b932c903a83..85207c3a549bfaf0d0a0761d9fcd8e9467fc6141 100644
--- a/extensions/renderer/extension_injection_host.cc
+++ b/extensions/renderer/extension_injection_host.cc
@@ -23,13 +23,13 @@ ExtensionInjectionHost::~ExtensionInjectionHost() {
}
// static
-scoped_ptr<const InjectionHost> ExtensionInjectionHost::Create(
+std::unique_ptr<const InjectionHost> ExtensionInjectionHost::Create(
const std::string& extension_id) {
const Extension* extension =
RendererExtensionRegistry::Get()->GetByID(extension_id);
if (!extension)
- return scoped_ptr<const ExtensionInjectionHost>();
- return scoped_ptr<const ExtensionInjectionHost>(
+ return std::unique_ptr<const ExtensionInjectionHost>();
+ return std::unique_ptr<const ExtensionInjectionHost>(
new ExtensionInjectionHost(extension));
}
« no previous file with comments | « extensions/renderer/extension_injection_host.h ('k') | extensions/renderer/extensions_render_frame_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698