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

Unified Diff: extensions/renderer/script_context.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/safe_builtins.cc ('k') | extensions/renderer/script_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/script_context.h
diff --git a/extensions/renderer/script_context.h b/extensions/renderer/script_context.h
index 48c873ce1fc8c47108b38cbfb2afbb0e165a190d..bbfd2f6b90edb872edabb62abdf811c8597a2d5b 100644
--- a/extensions/renderer/script_context.h
+++ b/extensions/renderer/script_context.h
@@ -89,7 +89,7 @@ class ScriptContext : public RequestSender::Source {
return effective_context_type_;
}
- void set_module_system(scoped_ptr<ModuleSystem> module_system) {
+ void set_module_system(std::unique_ptr<ModuleSystem> module_system) {
module_system_ = std::move(module_system);
}
@@ -231,7 +231,7 @@ class ScriptContext : public RequestSender::Source {
Feature::Context effective_context_type_;
// Owns and structures the JS that is injected to set up extension bindings.
- scoped_ptr<ModuleSystem> module_system_;
+ std::unique_ptr<ModuleSystem> module_system_;
// Contains safe copies of builtin objects like Function.prototype.
SafeBuiltins safe_builtins_;
@@ -247,7 +247,7 @@ class ScriptContext : public RequestSender::Source {
GURL url_;
- scoped_ptr<Runner> runner_;
+ std::unique_ptr<Runner> runner_;
base::ThreadChecker thread_checker_;
« no previous file with comments | « extensions/renderer/safe_builtins.cc ('k') | extensions/renderer/script_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698