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

Unified Diff: third_party/cld/base/logging.h

Issue 1911823002: Convert //third_party from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update crashpad's README.chromium 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 | « third_party/cld/BUILD.gn ('k') | third_party/cld/base/scoped_ptr.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/cld/base/logging.h
diff --git a/third_party/cld/base/logging.h b/third_party/cld/base/logging.h
index ba81cedb3e90129b7035339d3c42e5e40cdcd26a..85fdd812917d1c59154095f7134c06f114cb4f31 100644
--- a/third_party/cld/base/logging.h
+++ b/third_party/cld/base/logging.h
@@ -8,6 +8,8 @@
#include <errno.h>
#include <string.h>
#include <time.h>
+
+#include <memory>
#include <string>
#include <strstream>
#include <vector>
@@ -22,7 +24,6 @@
#include "base/crash.h"
#include "base/dynamic_annotations.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/stl_decl_msvc.h"
#include "base/log_severity.h"
#include "base/vlog_is_on.h"
@@ -996,7 +997,7 @@ private:
int preserved_errno_; // errno at Init() time
scoped_array<char> buf_; // buffer space for non FATAL messages
char* message_text_; // Complete message text
- scoped_ptr<LogStream> stream_alloc_;
+ std::unique_ptr<LogStream> stream_alloc_;
LogStream* stream_;
char severity_; // level of LogMessage (ex. I, W, E, F)
int line_; // line number of file that called LOG
@@ -1023,7 +1024,7 @@ private:
static LogMessageData fatal_msg_data_exclusive_;
static LogMessageData fatal_msg_data_shared_;
- scoped_ptr<LogMessageData> allocated_;
+ std::unique_ptr<LogMessageData> allocated_;
LogMessageData* data_;
friend class LogDestination;
« no previous file with comments | « third_party/cld/BUILD.gn ('k') | third_party/cld/base/scoped_ptr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698