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

Unified Diff: components/feedback/feedback_data.cc

Issue 1918083002: Convert //components/[f-n]* 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
« no previous file with comments | « components/feedback/feedback_data.h ('k') | components/feedback/feedback_data_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/feedback/feedback_data.cc
diff --git a/components/feedback/feedback_data.cc b/components/feedback/feedback_data.cc
index d898edfee78f3f4d73eb7cfc8e6b90d4d09ba324..f465f6c4ebba91aaf2827fd4fb72c697eff35e20 100644
--- a/components/feedback/feedback_data.cc
+++ b/components/feedback/feedback_data.cc
@@ -45,7 +45,7 @@ void FeedbackData::OnFeedbackPageDataComplete() {
}
void FeedbackData::SetAndCompressSystemInfo(
- scoped_ptr<FeedbackData::SystemLogsMap> sys_info) {
+ std::unique_ptr<FeedbackData::SystemLogsMap> sys_info) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
if (trace_id_ != 0) {
@@ -71,7 +71,7 @@ void FeedbackData::SetAndCompressSystemInfo(
}
void FeedbackData::SetAndCompressHistograms(
- scoped_ptr<std::string> histograms) {
+ std::unique_ptr<std::string> histograms) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
if (!histograms.get())
@@ -88,7 +88,7 @@ void FeedbackData::SetAndCompressHistograms(
}
void FeedbackData::AttachAndCompressFileData(
- scoped_ptr<std::string> attached_filedata) {
+ std::unique_ptr<std::string> attached_filedata) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
if (!attached_filedata.get() || attached_filedata->empty())
@@ -114,7 +114,7 @@ void FeedbackData::OnGetTraceData(
if (manager)
manager->DiscardTraceData(trace_id);
- scoped_ptr<std::string> data(new std::string);
+ std::unique_ptr<std::string> data(new std::string);
data->swap(trace_data->data());
AddFile(kTraceFilename, std::move(data));
« no previous file with comments | « components/feedback/feedback_data.h ('k') | components/feedback/feedback_data_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698