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

Side by Side Diff: components/error_page/common/localized_error.cc

Issue 2489443002: Move all components/offline_pages/ files into component/offline_pages/core (Closed)
Patch Set: rebase Created 4 years 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
« no previous file with comments | « components/error_page/common/BUILD.gn ('k') | components/ntp_snippets/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "components/error_page/common/localized_error.h" 5 #include "components/error_page/common/localized_error.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 19 matching lines...) Expand all
30 #include "net/base/net_errors.h" 30 #include "net/base/net_errors.h"
31 #include "ui/base/l10n/l10n_util.h" 31 #include "ui/base/l10n/l10n_util.h"
32 #include "ui/base/webui/web_ui_util.h" 32 #include "ui/base/webui/web_ui_util.h"
33 #include "url/origin.h" 33 #include "url/origin.h"
34 34
35 #if defined(OS_WIN) 35 #if defined(OS_WIN)
36 #include "base/win/windows_version.h" 36 #include "base/win/windows_version.h"
37 #endif 37 #endif
38 38
39 #if defined(OS_ANDROID) 39 #if defined(OS_ANDROID)
40 #include "components/offline_pages/offline_page_feature.h" 40 #include "components/offline_pages/core/offline_page_feature.h"
41 #endif 41 #endif
42 42
43 namespace error_page { 43 namespace error_page {
44 44
45 namespace { 45 namespace {
46 46
47 static const char kRedirectLoopLearnMoreUrl[] = 47 static const char kRedirectLoopLearnMoreUrl[] =
48 "https://support.google.com/chrome?p=rl_error"; 48 "https://support.google.com/chrome?p=rl_error";
49 static const char kWeakDHKeyLearnMoreUrl[] = 49 static const char kWeakDHKeyLearnMoreUrl[] =
50 "https://support.google.com/chrome?p=dh_error"; 50 "https://support.google.com/chrome?p=dh_error";
(...skipping 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after
1052 1052
1053 bool LocalizedError::HasStrings(const std::string& error_domain, 1053 bool LocalizedError::HasStrings(const std::string& error_domain,
1054 int error_code) { 1054 int error_code) {
1055 // Whether or not the there are strings for an error does not depend on 1055 // Whether or not the there are strings for an error does not depend on
1056 // whether or not the page was be generated by a POST, so just claim it was 1056 // whether or not the page was be generated by a POST, so just claim it was
1057 // not. 1057 // not.
1058 return LookupErrorMap(error_domain, error_code, /*is_post=*/false) != nullptr; 1058 return LookupErrorMap(error_domain, error_code, /*is_post=*/false) != nullptr;
1059 } 1059 }
1060 1060
1061 } // namespace error_page 1061 } // namespace error_page
OLDNEW
« no previous file with comments | « components/error_page/common/BUILD.gn ('k') | components/ntp_snippets/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698