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

Side by Side Diff: components/security_interstitials/core/ssl_error_ui.cc

Issue 2257173005: Add "learn more" links to SSL and SB interstitials (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update browser tests Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/security_interstitials/core/ssl_error_ui.h" 5 #include "components/security_interstitials/core/ssl_error_ui.h"
6 6
7 #include "base/i18n/time_formatting.h" 7 #include "base/i18n/time_formatting.h"
8 #include "components/security_interstitials/core/common_string_util.h" 8 #include "components/security_interstitials/core/common_string_util.h"
9 #include "components/security_interstitials/core/metrics_helper.h" 9 #include "components/security_interstitials/core/metrics_helper.h"
10 #include "components/ssl_errors/error_classification.h" 10 #include "components/ssl_errors/error_classification.h"
11 #include "components/ssl_errors/error_info.h" 11 #include "components/ssl_errors/error_info.h"
12 #include "grit/components_strings.h" 12 #include "grit/components_strings.h"
13 #include "ui/base/l10n/l10n_util.h" 13 #include "ui/base/l10n/l10n_util.h"
14 14
15 namespace security_interstitials { 15 namespace security_interstitials {
16 namespace { 16 namespace {
17 17
18 // URL for help page. 18 // URL for help page.
19 const char kHelpURL[] = "https://support.google.com/chrome/answer/4454607"; 19 const char kHelpURL[] = "https://support.google.com/chrome/answer/6098869";
20 20
21 bool IsMasked(int options, SSLErrorUI::SSLErrorOptionsMask mask) { 21 bool IsMasked(int options, SSLErrorUI::SSLErrorOptionsMask mask) {
22 return ((options & mask) != 0); 22 return ((options & mask) != 0);
23 } 23 }
24 24
25 } // namespace 25 } // namespace
26 26
27 SSLErrorUI::SSLErrorUI(const GURL& request_url, 27 SSLErrorUI::SSLErrorUI(const GURL& request_url,
28 int cert_error, 28 int cert_error,
29 const net::SSLInfo& ssl_info, 29 const net::SSLInfo& ssl_info,
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 NOTREACHED() << "Unsupported command: " << command; 190 NOTREACHED() << "Unsupported command: " << command;
191 case CMD_ERROR: 191 case CMD_ERROR:
192 case CMD_TEXT_FOUND: 192 case CMD_TEXT_FOUND:
193 case CMD_TEXT_NOT_FOUND: 193 case CMD_TEXT_NOT_FOUND:
194 // Commands are for testing. 194 // Commands are for testing.
195 break; 195 break;
196 } 196 }
197 } 197 }
198 198
199 } // security_interstitials 199 } // security_interstitials
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698