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

Unified Diff: extensions/renderer/worker_script_context_set.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/wake_event_page.cc ('k') | extensions/renderer/worker_script_context_set.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/worker_script_context_set.h
diff --git a/extensions/renderer/worker_script_context_set.h b/extensions/renderer/worker_script_context_set.h
index dd33a77d6a7ae4db75a76483bd8797dffe93431f..ef063b2fc903a9ff9aa0f51d04d5f3061487e48b 100644
--- a/extensions/renderer/worker_script_context_set.h
+++ b/extensions/renderer/worker_script_context_set.h
@@ -5,8 +5,9 @@
#ifndef EXTENSIONS_RENDERER_WORKER_SCRIPT_CONTEXT_SET_H_
#define EXTENSIONS_RENDERER_WORKER_SCRIPT_CONTEXT_SET_H_
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "base/threading/thread_local.h"
#include "content/public/child/worker_thread.h"
@@ -25,7 +26,7 @@ class WorkerScriptContextSet : public content::WorkerThread::Observer {
~WorkerScriptContextSet() override;
// Inserts |context| into the set. Contexts are stored in TLS.
- void Insert(scoped_ptr<ScriptContext> context);
+ void Insert(std::unique_ptr<ScriptContext> context);
// Removes the ScriptContext associated with |v8_context| which was added for
// |url| (used for sanity checking).
« no previous file with comments | « extensions/renderer/wake_event_page.cc ('k') | extensions/renderer/worker_script_context_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698