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

Unified Diff: tools/cygprofile/cygprofile.h

Issue 1869503004: Convert //tools to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, change iwyu fixes for converted directories to include <memory> 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 | « tools/clang/plugins/FindBadConstructsConsumer.cpp ('k') | tools/cygprofile/cygprofile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/cygprofile/cygprofile.h
diff --git a/tools/cygprofile/cygprofile.h b/tools/cygprofile/cygprofile.h
index 4ff13766bfd42ba1bac966af9694eada4a8539e8..439f1e52cbc8ab24130c8d65661601c86d748b41 100644
--- a/tools/cygprofile/cygprofile.h
+++ b/tools/cygprofile/cygprofile.h
@@ -20,15 +20,15 @@
#ifndef TOOLS_CYGPROFILE_CYGPROFILE_H_
#define TOOLS_CYGPROFILE_CYGPROFILE_H_
-#include <vector>
-
#include <sys/time.h>
#include <sys/types.h>
+#include <memory>
+#include <vector>
+
#include "base/callback.h"
#include "base/containers/hash_tables.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/synchronization/lock.h"
#include "build/build_config.h"
@@ -139,7 +139,7 @@ class ThreadLogsManager {
~ThreadLogsManager();
// Can be called from any thread.
- void AddLog(scoped_ptr<ThreadLog> new_log);
+ void AddLog(std::unique_ptr<ThreadLog> new_log);
private:
void StartInternalFlushThread_Locked();
@@ -155,7 +155,7 @@ class ThreadLogsManager {
// Protects the state below.
base::Lock lock_;
- scoped_ptr<Thread> flush_thread_;
+ std::unique_ptr<Thread> flush_thread_;
std::vector<ThreadLog*> logs_;
DISALLOW_COPY_AND_ASSIGN(ThreadLogsManager);
« no previous file with comments | « tools/clang/plugins/FindBadConstructsConsumer.cpp ('k') | tools/cygprofile/cygprofile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698