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

Unified Diff: chrome/browser/ssl/bad_clock_blocking_page.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
Index: chrome/browser/ssl/bad_clock_blocking_page.cc
diff --git a/chrome/browser/ssl/bad_clock_blocking_page.cc b/chrome/browser/ssl/bad_clock_blocking_page.cc
index 245a36b66469bace03d4c21fc0d21d476aef42e6..dcdfae4d86b293af2d120b96540bde434a840cb0 100644
--- a/chrome/browser/ssl/bad_clock_blocking_page.cc
+++ b/chrome/browser/ssl/bad_clock_blocking_page.cc
@@ -14,8 +14,6 @@
#include "chrome/browser/renderer_preferences_util.h"
#include "chrome/browser/ssl/cert_report_helper.h"
#include "chrome/browser/ssl/ssl_cert_reporter.h"
-#include "chrome/common/pref_names.h"
-#include "components/prefs/pref_service.h"
#include "components/security_interstitials/core/bad_clock_ui.h"
#include "components/security_interstitials/core/controller_client.h"
#include "components/security_interstitials/core/metrics_helper.h"
@@ -64,12 +62,6 @@ BadClockBlockingPage::BadClockBlockingPage(
ssl_info_(ssl_info),
time_triggered_(time_triggered),
controller_(new ChromeControllerClient(web_contents)) {
- // Get the language for the BadClockUI.
- std::string languages;
- Profile* profile =
- Profile::FromBrowserContext(web_contents->GetBrowserContext());
- if (profile)
- languages = profile->GetPrefs()->GetString(prefs::kAcceptLanguages);
// Set up the metrics helper for the BadClockUI.
security_interstitials::MetricsHelper::ReportDetails reporting_info;
@@ -87,7 +79,7 @@ BadClockBlockingPage::BadClockBlockingPage(
false /* overridable */, controller_->metrics_helper()));
bad_clock_ui_.reset(new security_interstitials::BadClockUI(
- request_url, cert_error, ssl_info, time_triggered, clock_state, languages,
+ request_url, cert_error, ssl_info, time_triggered, clock_state,
controller_.get()));
}
« no previous file with comments | « chrome/browser/search_engines/ui_thread_search_terms_data.cc ('k') | chrome/browser/ssl/captive_portal_blocking_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698