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

Unified Diff: chromecast/browser/cast_net_log.cc

Issue 1875623002: Convert //chromecast 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 | « chromecast/browser/cast_net_log.h ('k') | chromecast/browser/devtools/remote_debugging_server.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/cast_net_log.cc
diff --git a/chromecast/browser/cast_net_log.cc b/chromecast/browser/cast_net_log.cc
index a6e78c4fa73f411120b3214b001afb41bfbe46e3..927986f0a20007e92abfaf54b7c7745b7240e7c4 100644
--- a/chromecast/browser/cast_net_log.cc
+++ b/chromecast/browser/cast_net_log.cc
@@ -20,7 +20,8 @@ namespace chromecast {
namespace {
base::DictionaryValue* GetShellConstants() {
- scoped_ptr<base::DictionaryValue> constants_dict = net::GetNetConstants();
+ std::unique_ptr<base::DictionaryValue> constants_dict =
+ net::GetNetConstants();
// Add a dictionary with client information
base::DictionaryValue* dict = new base::DictionaryValue();
@@ -59,7 +60,7 @@ CastNetLog::CastNetLog() {
LOG(ERROR) << "Could not open file " << log_path.value()
<< " for net logging";
} else {
- scoped_ptr<base::Value> constants(GetShellConstants());
+ std::unique_ptr<base::Value> constants(GetShellConstants());
write_to_file_observer_.reset(new net::WriteToFileNetLogObserver());
write_to_file_observer_->StartObserving(this, std::move(file),
constants.get(), nullptr);
« no previous file with comments | « chromecast/browser/cast_net_log.h ('k') | chromecast/browser/devtools/remote_debugging_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698