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

Unified Diff: webrtc/system_wrappers/include/data_log_impl.h

Issue 1937693002: Replace scoped_ptr with unique_ptr everywhere (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@unique5
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 | « webrtc/system_wrappers/include/clock.h ('k') | webrtc/system_wrappers/include/utf_util_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/system_wrappers/include/data_log_impl.h
diff --git a/webrtc/system_wrappers/include/data_log_impl.h b/webrtc/system_wrappers/include/data_log_impl.h
index 35519609b996627054bafc755e8734aa0c5e47f1..c68c82985e56ef4f024613723a2b0e5cef8e2eb6 100644
--- a/webrtc/system_wrappers/include/data_log_impl.h
+++ b/webrtc/system_wrappers/include/data_log_impl.h
@@ -18,6 +18,7 @@
#define WEBRTC_SYSTEM_WRAPPERS_INCLUDE_DATA_LOG_IMPL_H_
#include <map>
+#include <memory>
#include <sstream>
#include <string>
#include <vector>
@@ -139,16 +140,16 @@ class DataLogImpl {
// Collection of tables indexed by the table name as std::string.
typedef std::map<std::string, LogTable*> TableMap;
- typedef rtc::scoped_ptr<CriticalSectionWrapper> CritSectScopedPtr;
+ typedef std::unique_ptr<CriticalSectionWrapper> CritSectScopedPtr;
static CritSectScopedPtr crit_sect_;
static DataLogImpl* instance_;
int counter_;
TableMap tables_;
EventWrapper* flush_event_;
- // This is a scoped_ptr so that we don't have to create threads in the no-op
+ // This is a unique_ptr so that we don't have to create threads in the no-op
// impl.
- rtc::scoped_ptr<rtc::PlatformThread> file_writer_thread_;
+ std::unique_ptr<rtc::PlatformThread> file_writer_thread_;
RWLockWrapper* tables_lock_;
};
« no previous file with comments | « webrtc/system_wrappers/include/clock.h ('k') | webrtc/system_wrappers/include/utf_util_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698