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

Unified Diff: components/net_log/chrome_net_log.cc

Issue 1918083002: Convert //components/[f-n]* 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
« no previous file with comments | « components/net_log/chrome_net_log.h ('k') | components/net_log/net_log_temp_file.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/net_log/chrome_net_log.cc
diff --git a/components/net_log/chrome_net_log.cc b/components/net_log/chrome_net_log.cc
index f17908f82ca2fd6ac5b29a7e2326e244fb545f3d..f1f552239af82f884bd6117f09d3b5ce66efde35 100644
--- a/components/net_log/chrome_net_log.cc
+++ b/components/net_log/chrome_net_log.cc
@@ -49,7 +49,7 @@ ChromeNetLog::ChromeNetLog(
LOG(ERROR) << "Could not open file " << log_file.value()
<< " for net logging";
} else {
- scoped_ptr<base::Value> constants(
+ std::unique_ptr<base::Value> constants(
GetConstants(command_line_string, channel_string));
write_to_file_observer_.reset(new net::WriteToFileNetLogObserver());
@@ -77,7 +77,8 @@ ChromeNetLog::~ChromeNetLog() {
base::Value* ChromeNetLog::GetConstants(
const base::CommandLine::StringType& command_line_string,
const std::string& channel_string) {
- scoped_ptr<base::DictionaryValue> constants_dict = net::GetNetConstants();
+ std::unique_ptr<base::DictionaryValue> constants_dict =
+ net::GetNetConstants();
DCHECK(constants_dict);
// Add a dictionary with the version of the client and its command line
« no previous file with comments | « components/net_log/chrome_net_log.h ('k') | components/net_log/net_log_temp_file.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698