| Index: chrome/renderer/about_handler.cc
|
| ===================================================================
|
| --- chrome/renderer/about_handler.cc (revision 10412)
|
| +++ chrome/renderer/about_handler.cc (working copy)
|
| @@ -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 @@
|
| };
|
|
|
| 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 @@
|
|
|
| // static
|
| bool AboutHandler::MaybeHandle(const GURL& url) {
|
| - if (url.scheme() != "about")
|
| + if (!url.SchemeIs(chrome::kAboutScheme))
|
| return false;
|
|
|
| struct AboutHandlerUrl* url_handler = about_urls;
|
|
|