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

Unified Diff: components/feedback/tracing_manager.h

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_uploader_unittest.cc ('k') | components/feedback/tracing_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/feedback/tracing_manager.h
diff --git a/components/feedback/tracing_manager.h b/components/feedback/tracing_manager.h
index ab6aab5c45c78f3ce2c08557806197b7f8b99980..9d944fc628105747e4d2d588ccf2a0c76aedf577 100644
--- a/components/feedback/tracing_manager.h
+++ b/components/feedback/tracing_manager.h
@@ -6,11 +6,11 @@
#define COMPONENTS_FEEDBACK_TRACING_MANAGER_H_
#include <map>
+#include <memory>
#include <string>
#include "base/callback.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/values.h"
@@ -39,7 +39,7 @@ class TracingManager {
virtual ~TracingManager();
// Create a TracingManager. Can only be called when none exists.
- static scoped_ptr<TracingManager> Create();
+ static std::unique_ptr<TracingManager> Create();
// Get the current TracingManager. Returns NULL if one doesn't exist.
static TracingManager* Get();
@@ -59,8 +59,9 @@ class TracingManager {
TracingManager();
void StartTracing();
- void OnTraceDataCollected(scoped_ptr<const base::DictionaryValue> metadata,
- base::RefCountedString* data);
+ void OnTraceDataCollected(
+ std::unique_ptr<const base::DictionaryValue> metadata,
+ base::RefCountedString* data);
// ID of the trace that is being collected.
int current_trace_id_;
« no previous file with comments | « components/feedback/feedback_uploader_unittest.cc ('k') | components/feedback/tracing_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698