Index: chrome/renderer/about_handler.cc |
=================================================================== |
--- chrome/renderer/about_handler.cc (revision 88158) |
+++ chrome/renderer/about_handler.cc (working copy) |
@@ -1,14 +1,12 @@ |
-// Copyright (c) 2011 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/logging.h" |
#include "base/process_util.h" |
#include "base/threading/platform_thread.h" |
#include "chrome/common/about_handler.h" |
-#include "content/common/url_constants.h" |
#include "googleurl/src/gurl.h" |
typedef void (*AboutHandlerFuncPtr)(); |
@@ -25,7 +23,7 @@ |
// static |
bool AboutHandler::MaybeHandle(const GURL& url) { |
- if (!url.SchemeIs(chrome::kChromeUIScheme)) |
+ if (url.scheme() != chrome_about_handler::kAboutScheme) |
return false; |
int about_urls_handler_index = 0; |
@@ -43,7 +41,8 @@ |
// static |
void AboutHandler::AboutCrash() { |
- CHECK(false); |
+ int *zero = NULL; |
+ *zero = 0; // Null pointer dereference: kaboom! |
} |
// static |