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

Unified Diff: sync/engine/traffic_logger.cc

Issue 1866243002: Convert //sync from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
Index: sync/engine/traffic_logger.cc
diff --git a/sync/engine/traffic_logger.cc b/sync/engine/traffic_logger.cc
index 1e9a6bc75fe6e12aed4d8c3621c877be936a07ae..58536eefbf7e78cad540059066dfb8e140b47a43 100644
--- a/sync/engine/traffic_logger.cc
+++ b/sync/engine/traffic_logger.cc
@@ -4,11 +4,11 @@
#include "sync/engine/traffic_logger.h"
+#include <memory>
#include <string>
#include "base/json/json_writer.h"
#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
#include "base/values.h"
#include "sync/protocol/proto_value_conversions.h"
#include "sync/protocol/sync.pb.h"
@@ -18,11 +18,11 @@ namespace syncer {
namespace {
template <class T>
void LogData(const T& data,
- scoped_ptr<base::DictionaryValue>(*to_dictionary_value)(const T&,
- bool),
+ std::unique_ptr<base::DictionaryValue> (
+ *to_dictionary_value)(const T&, bool),
const std::string& description) {
if (::logging::DEBUG_MODE && VLOG_IS_ON(1)) {
- scoped_ptr<base::DictionaryValue> value =
+ std::unique_ptr<base::DictionaryValue> value =
(*to_dictionary_value)(data, true /* include_specifics */);
std::string message;
base::JSONWriter::WriteWithOptions(

Powered by Google App Engine
This is Rietveld 408576698