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

Unified Diff: gin/isolate_holder.cc

Issue 1848423002: Convert //gin to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « gin/converter_unittest.cc ('k') | gin/modules/module_registry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gin/isolate_holder.cc
diff --git a/gin/isolate_holder.cc b/gin/isolate_holder.cc
index c05cd1e42db03c95849df9c022a0315a65b2f39f..5252400c13c5572251f72dcfb5b5e86c95ec3685 100644
--- a/gin/isolate_holder.cc
+++ b/gin/isolate_holder.cc
@@ -7,6 +7,8 @@
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
+
+#include <memory>
#include <utility>
#include "base/logging.h"
@@ -96,7 +98,7 @@ void IsolateHolder::RemoveRunMicrotasksObserver() {
}
void IsolateHolder::EnableIdleTasks(
- scoped_ptr<V8IdleTaskRunner> idle_task_runner) {
+ std::unique_ptr<V8IdleTaskRunner> idle_task_runner) {
DCHECK(isolate_data_.get());
isolate_data_->EnableIdleTasks(std::move(idle_task_runner));
}
« no previous file with comments | « gin/converter_unittest.cc ('k') | gin/modules/module_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698