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

Unified Diff: chrome/common/about_handler.cc

Issue 7068007: Revise about: and chrome: url handling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup and improve patch. Created 9 years, 7 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
diff --git a/chrome/common/about_handler.cc b/chrome/common/about_handler.cc
index 6e3e152529af46f39bd9ccbd70ec57c2b87c7b0b..e49be4f29a6a821cc9c7960a60bdbdd81c6abe25 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.
@@ -19,10 +19,8 @@ const char* const about_urls[] = {
};
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::kAboutScheme))
return false;
const char* const* url_handler = about_urls;

Powered by Google App Engine
This is Rietveld 408576698