summaryrefslogtreecommitdiffstats
path: root/chrome/common/about_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/about_handler.cc')
-rw-r--r--chrome/common/about_handler.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/chrome/common/about_handler.cc b/chrome/common/about_handler.cc
index 6e3e152..fded391 100644
--- a/chrome/common/about_handler.cc
+++ b/chrome/common/about_handler.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -11,18 +11,16 @@ namespace chrome_about_handler {
// This needs to match up with about_urls_handlers in
// chrome/renderer/about_handler.cc.
const char* const about_urls[] = {
- chrome::kAboutCrashURL,
- chrome::kAboutKillURL,
- chrome::kAboutHangURL,
- chrome::kAboutShorthangURL,
+ chrome::kChromeUICrashURL,
+ chrome::kChromeUIKillURL,
+ chrome::kChromeUIHangURL,
+ chrome::kChromeUIShorthangURL,
NULL,
};
const size_t about_urls_size = arraysize(about_urls);
-const char* const kAboutScheme = "about";
-
bool WillHandle(const GURL& url) {
- if (url.scheme() != kAboutScheme)
+ if (!url.SchemeIs(chrome::kChromeUIScheme))
return false;
const char* const* url_handler = about_urls;