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

Unified Diff: chrome/renderer/about_handler.cc

Issue 28224: Revert brett's code, for real this time. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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
« no previous file with comments | « chrome/common/url_constants.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/about_handler.cc
===================================================================
--- chrome/renderer/about_handler.cc (revision 10515)
+++ chrome/renderer/about_handler.cc (working copy)
@@ -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 @@
};
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 @@
// static
bool AboutHandler::MaybeHandle(const GURL& url) {
- if (!url.SchemeIs(chrome::kAboutScheme))
+ if (url.scheme() != "about")
return false;
struct AboutHandlerUrl* url_handler = about_urls;
« no previous file with comments | « chrome/common/url_constants.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698