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

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: update Created 4 years, 1 month 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 (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 18 matching lines...) Expand all
29 #include "net/base/escape.h" 29 #include "net/base/escape.h"
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 33
34 #if defined(OS_WIN) 34 #if defined(OS_WIN)
35 #include "base/win/windows_version.h" 35 #include "base/win/windows_version.h"
36 #endif 36 #endif
37 37
38 #if defined(OS_ANDROID) 38 #if defined(OS_ANDROID)
39 #include "components/offline_pages/offline_page_feature.h" 39 #include "components/offline_pages/core/offline_page_feature.h"
40 #endif 40 #endif
41 41
42 namespace error_page { 42 namespace error_page {
43 43
44 namespace { 44 namespace {
45 45
46 static const char kRedirectLoopLearnMoreUrl[] = 46 static const char kRedirectLoopLearnMoreUrl[] =
47 "https://support.google.com/chrome?p=rl_error"; 47 "https://support.google.com/chrome?p=rl_error";
48 static const char kWeakDHKeyLearnMoreUrl[] = 48 static const char kWeakDHKeyLearnMoreUrl[] =
49 "https://support.google.com/chrome?p=dh_error"; 49 "https://support.google.com/chrome?p=dh_error";
(...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after
1026 1026
1027 bool LocalizedError::HasStrings(const std::string& error_domain, 1027 bool LocalizedError::HasStrings(const std::string& error_domain,
1028 int error_code) { 1028 int error_code) {
1029 // Whether or not the there are strings for an error does not depend on 1029 // Whether or not the there are strings for an error does not depend on
1030 // whether or not the page was be generated by a POST, so just claim it was 1030 // whether or not the page was be generated by a POST, so just claim it was
1031 // not. 1031 // not.
1032 return LookupErrorMap(error_domain, error_code, /*is_post=*/false) != nullptr; 1032 return LookupErrorMap(error_domain, error_code, /*is_post=*/false) != nullptr;
1033 } 1033 }
1034 1034
1035 } // namespace error_page 1035 } // namespace error_page
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698