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

Unified Diff: extensions/renderer/user_script_set_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/user_script_set.cc ('k') | extensions/renderer/user_script_set_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/user_script_set_manager.h
diff --git a/extensions/renderer/user_script_set_manager.h b/extensions/renderer/user_script_set_manager.h
index 290a7029a5a52fedf0aa3b58051d059a0f040074..af7611e19ca53ab811397ad69b1b79b26e0573fe 100644
--- a/extensions/renderer/user_script_set_manager.h
+++ b/extensions/renderer/user_script_set_manager.h
@@ -60,7 +60,7 @@ class UserScriptSetManager : public content::RenderThreadObserver {
// Looks up the script injection associated with |script_id| and
// |extension_id| in the context of the given |web_frame|, |tab_id|,
// and |url|.
- scoped_ptr<ScriptInjection> GetInjectionForDeclarativeScript(
+ std::unique_ptr<ScriptInjection> GetInjectionForDeclarativeScript(
int script_id,
content::RenderFrame* render_frame,
int tab_id,
@@ -69,10 +69,11 @@ class UserScriptSetManager : public content::RenderThreadObserver {
// Append all injections from |static_scripts| and each of
// |programmatic_scripts_| to |injections|.
- void GetAllInjections(std::vector<scoped_ptr<ScriptInjection>>* injections,
- content::RenderFrame* render_frame,
- int tab_id,
- UserScript::RunLocation run_location);
+ void GetAllInjections(
+ std::vector<std::unique_ptr<ScriptInjection>>* injections,
+ content::RenderFrame* render_frame,
+ int tab_id,
+ UserScript::RunLocation run_location);
// Get active extension IDs from |static_scripts| and each of
// |programmatic_scripts_|.
« no previous file with comments | « extensions/renderer/user_script_set.cc ('k') | extensions/renderer/user_script_set_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698