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

Unified Diff: content/browser/net/network_errors_listing_ui.cc

Issue 1874893002: Convert //content/browser 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 | « content/browser/mojo_shell_browsertest.cc ('k') | content/browser/net/quota_policy_cookie_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/net/network_errors_listing_ui.cc
diff --git a/content/browser/net/network_errors_listing_ui.cc b/content/browser/net/network_errors_listing_ui.cc
index cacb3d0e3052b90c04f5bd02d7eb59aa1cf9a0ad..9f29c2869f099710301fc79d797ba5233504f89a 100644
--- a/content/browser/net/network_errors_listing_ui.cc
+++ b/content/browser/net/network_errors_listing_ui.cc
@@ -23,8 +23,8 @@ namespace content {
namespace {
-scoped_ptr<base::ListValue> GetNetworkErrorData() {
- scoped_ptr<base::DictionaryValue> error_codes = net::GetNetConstants();
+std::unique_ptr<base::ListValue> GetNetworkErrorData() {
+ std::unique_ptr<base::DictionaryValue> error_codes = net::GetNetConstants();
const base::DictionaryValue* net_error_codes_dict = nullptr;
for (base::DictionaryValue::Iterator itr(*error_codes); !itr.IsAtEnd();
@@ -35,7 +35,7 @@ scoped_ptr<base::ListValue> GetNetworkErrorData() {
}
}
- scoped_ptr<base::ListValue> error_list(new base::ListValue());
+ std::unique_ptr<base::ListValue> error_list(new base::ListValue());
for (base::DictionaryValue::Iterator itr(*net_error_codes_dict);
!itr.IsAtEnd(); itr.Advance()) {
« no previous file with comments | « content/browser/mojo_shell_browsertest.cc ('k') | content/browser/net/quota_policy_cookie_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698