Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3926)

Unified Diff: chrome/common/about_handler.cc

Issue 9349010: Move handling of debug urls like chrome://crash, chrome://gpuclean to content. These are for test... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/about_handler.cc
===================================================================
--- chrome/common/about_handler.cc (revision 120733)
+++ chrome/common/about_handler.cc (working copy)
@@ -1,35 +0,0 @@
-// 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.
-
-#include "chrome/common/about_handler.h"
-#include "chrome/common/url_constants.h"
-#include "googleurl/src/gurl.h"
-
-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::kChromeUICrashURL,
- chrome::kChromeUIKillURL,
- chrome::kChromeUIHangURL,
- chrome::kChromeUIShorthangURL,
- NULL,
-};
-const size_t about_urls_size = arraysize(about_urls);
-
-bool WillHandle(const GURL& url) {
- if (!url.SchemeIs(chrome::kChromeUIScheme))
- return false;
-
- const char* const* url_handler = about_urls;
- while (*url_handler) {
- if (GURL(*url_handler) == url)
- return true;
- url_handler++;
- }
- return false;
-}
-
-} // namespace chrome_about_handler

Powered by Google App Engine
This is Rietveld 408576698