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

Unified Diff: extensions/renderer/programmatic_script_injector.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
Index: extensions/renderer/programmatic_script_injector.h
diff --git a/extensions/renderer/programmatic_script_injector.h b/extensions/renderer/programmatic_script_injector.h
index a7af9ff381885b18c5a3ce111bf14fa7c9dbc57e..885c3b12151cc2fc9b4d5ecf686b0e40ddc198cb 100644
--- a/extensions/renderer/programmatic_script_injector.h
+++ b/extensions/renderer/programmatic_script_injector.h
@@ -5,8 +5,9 @@
#ifndef EXTENSIONS_RENDERER_PROGRAMMATIC_SCRIPT_INJECTOR_H_
#define EXTENSIONS_RENDERER_PROGRAMMATIC_SCRIPT_INJECTOR_H_
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/values.h"
#include "extensions/renderer/script_injection.h"
#include "url/gurl.h"
@@ -44,7 +45,7 @@ class ProgrammaticScriptInjector : public ScriptInjector {
UserScript::RunLocation run_location) const override;
void GetRunInfo(ScriptsRunInfo* scripts_run_info,
UserScript::RunLocation run_location) const override;
- void OnInjectionComplete(scoped_ptr<base::Value> execution_result,
+ void OnInjectionComplete(std::unique_ptr<base::Value> execution_result,
UserScript::RunLocation run_location,
content::RenderFrame* render_frame) override;
void OnWillNotInject(InjectFailureReason reason,
@@ -61,7 +62,7 @@ class ProgrammaticScriptInjector : public ScriptInjector {
void Finish(const std::string& error, content::RenderFrame* render_frame);
// The parameters for injecting the script.
- scoped_ptr<ExtensionMsg_ExecuteCode_Params> params_;
+ std::unique_ptr<ExtensionMsg_ExecuteCode_Params> params_;
// The url of the frame into which we are injecting.
GURL url_;
« no previous file with comments | « extensions/renderer/mojo/stash_client_unittest.cc ('k') | extensions/renderer/programmatic_script_injector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698