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

Unified Diff: components/crash/content/browser/crash_micro_dump_manager_android.h

Issue 1884743002: Convert a few components from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lint 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: components/crash/content/browser/crash_micro_dump_manager_android.h
diff --git a/components/crash/content/browser/crash_micro_dump_manager_android.h b/components/crash/content/browser/crash_micro_dump_manager_android.h
index 6490e6fa70a2d1fa74026eefadf9ed47441a6963..753b344030a44bf4864f46e1d0994b30878fdcb8 100644
--- a/components/crash/content/browser/crash_micro_dump_manager_android.h
+++ b/components/crash/content/browser/crash_micro_dump_manager_android.h
@@ -6,9 +6,9 @@
#define COMPONENTS_CRASH_CONTENT_BROWSER_CRASH_MICRO_DUMP_MANAGER_ANDROID_H_
#include <map>
+#include <memory>
#include "base/files/scoped_file.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/singleton.h"
#include "base/memory/weak_ptr.h"
#include "base/process/kill.h"
@@ -58,7 +58,7 @@ class CrashMicroDumpManager : public content::NotificationObserver {
// This map should only be accessed with its lock aquired as it is accessed
// from the PROCESS_LAUNCHER, FILE, and UI threads.
base::Lock child_process_id_to_pipe_lock_;
- std::map<int, scoped_ptr<base::SyncSocket>> child_process_id_to_pipe_;
+ std::map<int, std::unique_ptr<base::SyncSocket>> child_process_id_to_pipe_;
base::WeakPtrFactory<CrashMicroDumpManager> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(CrashMicroDumpManager);

Powered by Google App Engine
This is Rietveld 408576698