diff options
Diffstat (limited to 'chrome/renderer/about_handler.cc')
-rw-r--r-- | chrome/renderer/about_handler.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/renderer/about_handler.cc b/chrome/renderer/about_handler.cc index ff26d85..d0fb504 100644 --- a/chrome/renderer/about_handler.cc +++ b/chrome/renderer/about_handler.cc @@ -5,6 +5,7 @@ #include "chrome/renderer/about_handler.h" #include "base/platform_thread.h" +#include "chrome/common/url_constants.h" #include "googleurl/src/gurl.h" struct AboutHandlerUrl { @@ -13,14 +14,14 @@ struct AboutHandlerUrl { }; static AboutHandlerUrl about_urls[] = { - { "about:crash", AboutHandler::AboutCrash }, - { "about:hang", AboutHandler::AboutHang }, - { "about:shorthang", AboutHandler::AboutShortHang }, + { chrome::kAboutCrashURL, AboutHandler::AboutCrash }, + { chrome::kAboutHangURL, AboutHandler::AboutHang }, + { chrome::kAboutShortHangURL, AboutHandler::AboutShortHang }, { NULL, NULL } }; bool AboutHandler::WillHandle(const GURL& url) { - if (url.scheme() != "about") + if (url.SchemeIs(chrome::kAboutScheme)) return false; struct AboutHandlerUrl* url_handler = about_urls; @@ -34,7 +35,7 @@ bool AboutHandler::WillHandle(const GURL& url) { // static bool AboutHandler::MaybeHandle(const GURL& url) { - if (url.scheme() != "about") + if (!url.SchemeIs(chrome::kAboutScheme)) return false; struct AboutHandlerUrl* url_handler = about_urls; |