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

Unified Diff: extensions/renderer/script_injection_manager.h

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
« no previous file with comments | « extensions/renderer/script_injection.cc ('k') | extensions/renderer/script_injection_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/script_injection_manager.h
diff --git a/extensions/renderer/script_injection_manager.h b/extensions/renderer/script_injection_manager.h
index c0f5da82cce9c5fc6ae14f0f30ce72b02a70cd5b..814a8fee4526e7a4e7e1871fa211f7ea6dbed52a 100644
--- a/extensions/renderer/script_injection_manager.h
+++ b/extensions/renderer/script_injection_manager.h
@@ -53,7 +53,7 @@ class ScriptInjectionManager : public UserScriptSetManager::Observer {
using FrameStatusMap =
std::map<content::RenderFrame*, UserScript::RunLocation>;
- using ScriptInjectionVector = std::vector<scoped_ptr<ScriptInjection>>;
+ using ScriptInjectionVector = std::vector<std::unique_ptr<ScriptInjection>>;
// Notifies that an injection has been finished.
void OnInjectionFinished(ScriptInjection* injection);
@@ -77,7 +77,7 @@ class ScriptInjectionManager : public UserScriptSetManager::Observer {
UserScript::RunLocation run_location);
// Try to inject and store injection if it has not finished.
- void TryToInject(scoped_ptr<ScriptInjection> injection,
+ void TryToInject(std::unique_ptr<ScriptInjection> injection,
UserScript::RunLocation run_location,
ScriptsRunInfo* scripts_run_info);
@@ -103,7 +103,7 @@ class ScriptInjectionManager : public UserScriptSetManager::Observer {
std::set<content::RenderFrame*> active_injection_frames_;
// The collection of RFOHelpers.
- std::vector<scoped_ptr<RFOHelper>> rfo_helpers_;
+ std::vector<std::unique_ptr<RFOHelper>> rfo_helpers_;
// The set of UserScripts associated with extensions. Owned by the Dispatcher.
UserScriptSetManager* user_script_set_manager_;
« no previous file with comments | « extensions/renderer/script_injection.cc ('k') | extensions/renderer/script_injection_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698