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

Unified Diff: extensions/renderer/api_binding_hooks.cc

Issue 2846743002: Switch SupportsUserData uses to use unique_ptr. (Closed)
Patch Set: Created 3 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/browser/view_type_utils.cc ('k') | extensions/renderer/api_event_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/api_binding_hooks.cc
diff --git a/extensions/renderer/api_binding_hooks.cc b/extensions/renderer/api_binding_hooks.cc
index 2da9784de835b9834c28c091b970e3a2e99f8952..46540ef421a06398fd75505cc3b4a0f923d258e4 100644
--- a/extensions/renderer/api_binding_hooks.cc
+++ b/extensions/renderer/api_binding_hooks.cc
@@ -172,7 +172,7 @@ v8::Local<v8::Object> GetJSHookInterfaceObject(
base::MakeUnique<APIHooksPerContextData>(context->GetIsolate());
data = api_data.get();
per_context_data->SetUserData(kExtensionAPIHooksPerContextKey,
- api_data.release());
+ std::move(api_data));
}
auto iter = data->hook_interfaces.find(api_name);
« no previous file with comments | « extensions/browser/view_type_utils.cc ('k') | extensions/renderer/api_event_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698