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

Unified Diff: content/browser/tracing/background_tracing_manager_impl.cc

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: content/browser/tracing/background_tracing_manager_impl.cc
diff --git a/content/browser/tracing/background_tracing_manager_impl.cc b/content/browser/tracing/background_tracing_manager_impl.cc
index ca394886207a98b21258ca630d802516314cbb1a..32fac322c04946c05aabe13e47ab06ab8edb3eb1 100644
--- a/content/browser/tracing/background_tracing_manager_impl.cc
+++ b/content/browser/tracing/background_tracing_manager_impl.cc
@@ -101,7 +101,7 @@ void BackgroundTracingManagerImpl::WhenIdle(
}
bool BackgroundTracingManagerImpl::SetActiveScenario(
- scoped_ptr<BackgroundTracingConfig> config,
+ std::unique_ptr<BackgroundTracingConfig> config,
const BackgroundTracingManager::ReceiveCallback& receive_callback,
DataFiltering data_filtering) {
CHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
@@ -136,7 +136,7 @@ bool BackgroundTracingManagerImpl::SetActiveScenario(
base::Unretained(this)));
}
- scoped_ptr<const content::BackgroundTracingConfigImpl> config_impl(
+ std::unique_ptr<const content::BackgroundTracingConfigImpl> config_impl(
static_cast<BackgroundTracingConfigImpl*>(config.release()));
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
@@ -400,7 +400,7 @@ void BackgroundTracingManagerImpl::StartTracing(
}
void BackgroundTracingManagerImpl::OnFinalizeStarted(
- scoped_ptr<const base::DictionaryValue> metadata,
+ std::unique_ptr<const base::DictionaryValue> metadata,
base::RefCountedString* file_contents) {
CHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
@@ -452,7 +452,8 @@ void BackgroundTracingManagerImpl::AddCustomMetadata(
TracingControllerImpl::TraceDataSink* trace_data_sink) const {
base::DictionaryValue metadata_dict;
- scoped_ptr<base::DictionaryValue> config_dict(new base::DictionaryValue());
+ std::unique_ptr<base::DictionaryValue> config_dict(
+ new base::DictionaryValue());
config_->IntoDict(config_dict.get());
metadata_dict.Set("config", std::move(config_dict));
« no previous file with comments | « content/browser/tracing/background_tracing_manager_impl.h ('k') | content/browser/tracing/background_tracing_rule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698