summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/about_handler.cc
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-07 20:31:24 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-07 20:31:24 +0000
commit8b717ea16c81a3ed0a5e1801987342a2e7155f8c (patch)
tree04d25d33bf4c45bef52d91268bd99727da5adcdc /chrome/renderer/about_handler.cc
parentef3c3d3b1818ec9c05ec8de5c448d3936da07987 (diff)
downloadchromium_src-8b717ea16c81a3ed0a5e1801987342a2e7155f8c.zip
chromium_src-8b717ea16c81a3ed0a5e1801987342a2e7155f8c.tar.gz
chromium_src-8b717ea16c81a3ed0a5e1801987342a2e7155f8c.tar.bz2
Use chrome::kAboutCrashURL in a few most places.
BUG=none TEST=none Review URL: http://codereview.chromium.org/1612008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43871 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/about_handler.cc')
-rw-r--r--chrome/renderer/about_handler.cc15
1 files changed, 9 insertions, 6 deletions
diff --git a/chrome/renderer/about_handler.cc b/chrome/renderer/about_handler.cc
index d775531..8412949 100644
--- a/chrome/renderer/about_handler.cc
+++ b/chrome/renderer/about_handler.cc
@@ -1,10 +1,11 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#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,16 @@ 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 }
};
+static const char* kAboutScheme = "about";
+
bool AboutHandler::WillHandle(const GURL& url) {
- if (url.scheme() != "about")
+ if (url.scheme() != kAboutScheme)
return false;
struct AboutHandlerUrl* url_handler = about_urls;
@@ -34,7 +37,7 @@ bool AboutHandler::WillHandle(const GURL& url) {
// static
bool AboutHandler::MaybeHandle(const GURL& url) {
- if (url.scheme() != "about")
+ if (url.scheme() != kAboutScheme)
return false;
struct AboutHandlerUrl* url_handler = about_urls;