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

Unified Diff: chrome/renderer/net/net_error_helper.cc

Issue 1841653003: Drop |languages| from {Format,Elide}Url* and IDNToUnicode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo in elide_url.cc 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 | « chrome/common/net/x509_certificate_model.cc ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/net/net_error_helper.cc
diff --git a/chrome/renderer/net/net_error_helper.cc b/chrome/renderer/net/net_error_helper.cc
index 5a19bcced8cdeac6f755207ca1778575ade6a1cd..a1b85b78437e5a97b4e9d97e1a2a1a271b683174 100644
--- a/chrome/renderer/net/net_error_helper.cc
+++ b/chrome/renderer/net/net_error_helper.cc
@@ -202,7 +202,6 @@ void NetErrorHelper::GenerateLocalizedErrorPage(
error.reason, error.domain.utf8(), error.unreachableURL, is_failed_post,
error.staleCopyInCache, can_show_network_diagnostics_dialog,
has_offline_pages, RenderThread::Get()->GetLocale(),
- render_frame()->GetRenderView()->GetAcceptLanguages(),
std::move(params), &error_strings);
*reload_button_shown = error_strings.Get("reloadButton", nullptr);
*show_saved_copy_button_shown =
@@ -241,7 +240,6 @@ void NetErrorHelper::UpdateErrorPage(const blink::WebURLError& error,
can_show_network_diagnostics_dialog,
has_offline_pages,
RenderThread::Get()->GetLocale(),
- render_frame()->GetRenderView()->GetAcceptLanguages(),
scoped_ptr<ErrorPageParams>(),
&error_strings);
@@ -366,10 +364,8 @@ void NetErrorHelper::OnNavigationCorrectionsFetched(
scoped_ptr<content::ResourceFetcher> fetcher(
correction_fetcher_.release());
bool success = (!response.isNull() && response.httpStatusCode() == 200);
- core_->OnNavigationCorrectionsFetched(
- success ? data : "",
- render_frame()->GetRenderView()->GetAcceptLanguages(),
- base::i18n::IsRTL());
+ core_->OnNavigationCorrectionsFetched(success ? data : "",
+ base::i18n::IsRTL());
}
void NetErrorHelper::OnTrackingRequestComplete(
« no previous file with comments | « chrome/common/net/x509_certificate_model.cc ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698