summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/about_handler.cc
diff options
context:
space:
mode:
authornsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-26 22:55:17 +0000
committernsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-26 22:55:17 +0000
commit6aad4bd9df52e958bdc283f270b8775353589c4e (patch)
tree947c802b7d2e8b6d75f9c903e1b9ae3e8d175292 /chrome/renderer/about_handler.cc
parent2ce95ef06f6439da3e0d5722d1f50eeb05c94684 (diff)
downloadchromium_src-6aad4bd9df52e958bdc283f270b8775353589c4e.zip
chromium_src-6aad4bd9df52e958bdc283f270b8775353589c4e.tar.gz
chromium_src-6aad4bd9df52e958bdc283f270b8775353589c4e.tar.bz2
Revert brett's code, for real this time.
Review URL: http://codereview.chromium.org/28224 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10517 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/about_handler.cc')
-rw-r--r--chrome/renderer/about_handler.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/chrome/renderer/about_handler.cc b/chrome/renderer/about_handler.cc
index d0fb504..ff26d85 100644
--- a/chrome/renderer/about_handler.cc
+++ b/chrome/renderer/about_handler.cc
@@ -5,7 +5,6 @@
#include "chrome/renderer/about_handler.h"
#include "base/platform_thread.h"
-#include "chrome/common/url_constants.h"
#include "googleurl/src/gurl.h"
struct AboutHandlerUrl {
@@ -14,14 +13,14 @@ struct AboutHandlerUrl {
};
static AboutHandlerUrl about_urls[] = {
- { chrome::kAboutCrashURL, AboutHandler::AboutCrash },
- { chrome::kAboutHangURL, AboutHandler::AboutHang },
- { chrome::kAboutShortHangURL, AboutHandler::AboutShortHang },
+ { "about:crash", AboutHandler::AboutCrash },
+ { "about:hang", AboutHandler::AboutHang },
+ { "about:shorthang", AboutHandler::AboutShortHang },
{ NULL, NULL }
};
bool AboutHandler::WillHandle(const GURL& url) {
- if (url.SchemeIs(chrome::kAboutScheme))
+ if (url.scheme() != "about")
return false;
struct AboutHandlerUrl* url_handler = about_urls;
@@ -35,7 +34,7 @@ bool AboutHandler::WillHandle(const GURL& url) {
// static
bool AboutHandler::MaybeHandle(const GURL& url) {
- if (!url.SchemeIs(chrome::kAboutScheme))
+ if (url.scheme() != "about")
return false;
struct AboutHandlerUrl* url_handler = about_urls;