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

Unified Diff: components/error_page/common/localized_error.cc

Issue 1921973002: Convert //components/[a-e]* 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: components/error_page/common/localized_error.cc
diff --git a/components/error_page/common/localized_error.cc b/components/error_page/common/localized_error.cc
index 2b5927f282237df97cb2bc6c43c3614f77ba3cff..a087772e90d58226fe816be1d7a44b72af4035af 100644
--- a/components/error_page/common/localized_error.cc
+++ b/components/error_page/common/localized_error.cc
@@ -542,7 +542,8 @@ void AddGoogleCachedCopyButton(base::ListValue* suggestions_summary_list,
suggestion->GetString("urlCorrection", &cache_url);
int cache_tracking_id = -1;
suggestion->GetInteger("trackingId", &cache_tracking_id);
- scoped_ptr<base::DictionaryValue> cache_button(new base::DictionaryValue);
+ std::unique_ptr<base::DictionaryValue> cache_button(
+ new base::DictionaryValue);
cache_button->SetString(
"msg",
l10n_util::GetStringUTF16(IDS_ERRORPAGES_BUTTON_SHOW_SAVED_COPY));
@@ -837,16 +838,17 @@ std::string HttpErrorCodeToString(int error) {
const char LocalizedError::kHttpErrorDomain[] = "http";
-void LocalizedError::GetStrings(int error_code,
- const std::string& error_domain,
- const GURL& failed_url,
- bool is_post,
- bool stale_copy_in_cache,
- bool can_show_network_diagnostics_dialog,
- bool has_offline_pages,
- const std::string& locale,
- scoped_ptr<error_page::ErrorPageParams> params,
- base::DictionaryValue* error_strings) {
+void LocalizedError::GetStrings(
+ int error_code,
+ const std::string& error_domain,
+ const GURL& failed_url,
+ bool is_post,
+ bool stale_copy_in_cache,
+ bool can_show_network_diagnostics_dialog,
+ bool has_offline_pages,
+ const std::string& locale,
+ std::unique_ptr<error_page::ErrorPageParams> params,
+ base::DictionaryValue* error_strings) {
webui::SetLoadTimeDataDefaults(locale, error_strings);
// Grab the strings and settings that depend on the error type. Init
« no previous file with comments | « components/error_page/common/localized_error.h ('k') | components/error_page/renderer/net_error_helper_core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698