diff options
author | thestig <thestig@chromium.org> | 2014-11-19 10:49:30 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-19 18:49:58 +0000 |
commit | 65a3dc6e613d66c05e553556eede2c3b3b5eb363 (patch) | |
tree | f8b0f0aeb44b0ad73e3c700306c8d1e163382bfa /components/error_page | |
parent | b6ed298b77e95cb996fb184107337dfbbbac3bfa (diff) | |
download | chromium_src-65a3dc6e613d66c05e553556eede2c3b3b5eb363.zip chromium_src-65a3dc6e613d66c05e553556eede2c3b3b5eb363.tar.gz chromium_src-65a3dc6e613d66c05e553556eede2c3b3b5eb363.tar.bz2 |
Cleanup: Use http/https constants in components.
Review URL: https://codereview.chromium.org/726923004
Cr-Commit-Position: refs/heads/master@{#304851}
Diffstat (limited to 'components/error_page')
-rw-r--r-- | components/error_page/renderer/net_error_helper_core.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/error_page/renderer/net_error_helper_core.cc b/components/error_page/renderer/net_error_helper_core.cc index 9c02e78..94abe60 100644 --- a/components/error_page/renderer/net_error_helper_core.cc +++ b/components/error_page/renderer/net_error_helper_core.cc @@ -31,6 +31,7 @@ #include "third_party/WebKit/public/platform/WebURLError.h" #include "ui/base/l10n/l10n_util.h" #include "url/gurl.h" +#include "url/url_constants.h" namespace error_page { @@ -153,7 +154,7 @@ bool ShouldUseFixUrlServiceForError(const blink::WebURLError& error, return false; std::string domain = error.domain.utf8(); - if (domain == "http" && error.reason == 404) { + if (domain == url::kHttpScheme && error.reason == 404) { *error_param = "http404"; return true; } |