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

Unified Diff: components/security_interstitials/core/safe_browsing_loud_error_ui.cc

Issue 2890703002: SafeBrowsing: allow WebView to customize the Help Center URL (Closed)
Patch Set: Rebase and fix compile errors, no logic change Created 3 years, 7 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 | « components/security_interstitials/core/base_safe_browsing_error_ui.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/security_interstitials/core/safe_browsing_loud_error_ui.cc
diff --git a/components/security_interstitials/core/safe_browsing_loud_error_ui.cc b/components/security_interstitials/core/safe_browsing_loud_error_ui.cc
index 96207898d02a3eb14fec0a732c8256b7f4aae7cd..ebfcfb5aef3d5c495bf3bde2497e5c25eb79cb9d 100644
--- a/components/security_interstitials/core/safe_browsing_loud_error_ui.cc
+++ b/components/security_interstitials/core/safe_browsing_loud_error_ui.cc
@@ -13,14 +13,14 @@
#include "components/security_interstitials/core/metrics_helper.h"
#include "components/strings/grit/components_strings.h"
#include "net/base/escape.h"
+#include "net/base/url_util.h"
#include "ui/base/l10n/l10n_util.h"
namespace security_interstitials {
namespace {
-// URL for the Help Center article on Safe Browsing warnings.
-const char kLearnMore[] =
- "https://support.google.com/chrome/?p=cpn_safe_browsing";
+// URL for the Help Center
+const char kLearnMore[] = "https://support.google.com/chrome/";
// For malware interstitial pages, we link the problematic URL to Google's
// diagnostic page.
@@ -165,6 +165,8 @@ void SafeBrowsingLoudErrorUI::HandleCommand(
controller()->metrics_helper()->RecordUserInteraction(
security_interstitials::MetricsHelper::SHOW_LEARN_MORE);
GURL learn_more_url(kLearnMore);
+ learn_more_url = net::AppendQueryParameter(
+ learn_more_url, "p", get_help_center_article_link());
learn_more_url =
google_util::AppendGoogleLocaleParam(learn_more_url, app_locale());
controller()->OpenUrlInCurrentTab(learn_more_url);
« no previous file with comments | « components/security_interstitials/core/base_safe_browsing_error_ui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698