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

Unified Diff: remoting/base/vlog_net_log.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU 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 | « remoting/base/vlog_net_log.h ('k') | remoting/client/audio_decode_scheduler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/vlog_net_log.cc
diff --git a/remoting/base/vlog_net_log.cc b/remoting/base/vlog_net_log.cc
index 98c964f9e67928a7b13daa2f652646c978097dd5..4a3ad8e8f776e43e77548ac5f7f0264b6151ee2f 100644
--- a/remoting/base/vlog_net_log.cc
+++ b/remoting/base/vlog_net_log.cc
@@ -4,10 +4,11 @@
#include "remoting/base/vlog_net_log.h"
+#include <memory>
+
#include "base/json/json_writer.h"
#include "base/logging.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/threading/thread_restrictions.h"
#include "base/time/time.h"
#include "base/values.h"
@@ -34,7 +35,7 @@ VlogNetLog::Observer::~Observer() {
void VlogNetLog::Observer::OnAddEntry(const net::NetLog::Entry& entry) {
if (VLOG_IS_ON(4)) {
- scoped_ptr<base::Value> value(entry.ToValue());
+ std::unique_ptr<base::Value> value(entry.ToValue());
std::string json;
base::JSONWriter::Write(*value, &json);
VLOG(4) << json;
« no previous file with comments | « remoting/base/vlog_net_log.h ('k') | remoting/client/audio_decode_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698