| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/common/localized_error.h" | 5 #include "chrome/common/localized_error.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/i18n/rtl.h" | 8 #include "base/i18n/rtl.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 using blink::WebURLError; | 42 using blink::WebURLError; |
| 43 | 43 |
| 44 // Some error pages have no details. | 44 // Some error pages have no details. |
| 45 const unsigned int kErrorPagesNoDetails = 0; | 45 const unsigned int kErrorPagesNoDetails = 0; |
| 46 | 46 |
| 47 namespace { | 47 namespace { |
| 48 | 48 |
| 49 static const char kRedirectLoopLearnMoreUrl[] = | 49 static const char kRedirectLoopLearnMoreUrl[] = |
| 50 "https://www.google.com/support/chrome/bin/answer.py?answer=95626"; | 50 "https://www.google.com/support/chrome/bin/answer.py?answer=95626"; |
| 51 static const char kWeakDHKeyLearnMoreUrl[] = | 51 static const char kWeakDHKeyLearnMoreUrl[] = |
| 52 "http://sites.google.com/a/chromium.org/dev/" | 52 "https://www.chromium.org/administrators/" |
| 53 "err_ssl_weak_server_ephemeral_dh_key"; | 53 "err_ssl_weak_server_ephemeral_dh_key"; |
| 54 #if defined(OS_CHROMEOS) | 54 #if defined(OS_CHROMEOS) |
| 55 static const char kAppWarningLearnMoreUrl[] = | 55 static const char kAppWarningLearnMoreUrl[] = |
| 56 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html" | 56 "chrome-extension://honijodknafkokifofgiaalefdiedpko/main.html" |
| 57 "?answer=1721911"; | 57 "?answer=1721911"; |
| 58 #endif // defined(OS_CHROMEOS) | 58 #endif // defined(OS_CHROMEOS) |
| 59 | 59 |
| 60 enum NAV_SUGGESTIONS { | 60 enum NAV_SUGGESTIONS { |
| 61 SUGGEST_NONE = 0, | 61 SUGGEST_NONE = 0, |
| 62 SUGGEST_RELOAD = 1 << 0, | 62 SUGGEST_RELOAD = 1 << 0, |
| (...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 920 GURL learn_more_url(kAppWarningLearnMoreUrl); | 920 GURL learn_more_url(kAppWarningLearnMoreUrl); |
| 921 base::DictionaryValue* suggest_learn_more = new base::DictionaryValue(); | 921 base::DictionaryValue* suggest_learn_more = new base::DictionaryValue(); |
| 922 suggest_learn_more->SetString("msg", | 922 suggest_learn_more->SetString("msg", |
| 923 l10n_util::GetStringUTF16( | 923 l10n_util::GetStringUTF16( |
| 924 IDS_ERRORPAGES_SUGGESTION_LEARNMORE_BODY)); | 924 IDS_ERRORPAGES_SUGGESTION_LEARNMORE_BODY)); |
| 925 suggest_learn_more->SetString("learnMoreUrl", learn_more_url.spec()); | 925 suggest_learn_more->SetString("learnMoreUrl", learn_more_url.spec()); |
| 926 error_strings->Set("suggestionsLearnMore", suggest_learn_more); | 926 error_strings->Set("suggestionsLearnMore", suggest_learn_more); |
| 927 #endif // defined(OS_CHROMEOS) | 927 #endif // defined(OS_CHROMEOS) |
| 928 } | 928 } |
| 929 #endif | 929 #endif |
| OLD | NEW |