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

Unified Diff: chrome/browser/net/view_blob_internals_job_factory.cc

Issue 7068007: Revise about: and chrome: url handling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update special_tabs.py from Nirnimesh's codereview.chromium.org/6995057/. Created 9 years, 6 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/browser/net/url_fixer_upper_unittest.cc ('k') | chrome/browser/net/view_http_cache_job_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/view_blob_internals_job_factory.cc
diff --git a/chrome/browser/net/view_blob_internals_job_factory.cc b/chrome/browser/net/view_blob_internals_job_factory.cc
index 14989341a3ab4e2325d16a30a748fbbf0b72067b..2b84f23f0c09f6668203470e8029e404cb96336a 100644
--- a/chrome/browser/net/view_blob_internals_job_factory.cc
+++ b/chrome/browser/net/view_blob_internals_job_factory.cc
@@ -13,9 +13,8 @@
// static.
bool ViewBlobInternalsJobFactory::IsSupportedURL(const GURL& url) {
- return StartsWithASCII(url.spec(),
- chrome::kBlobViewInternalsURL,
- true /*case_sensitive*/);
+ return url.SchemeIs(chrome::kChromeUIScheme) &&
+ url.host() == chrome::kChromeUIBlobInternalsHost;
}
// static.
« no previous file with comments | « chrome/browser/net/url_fixer_upper_unittest.cc ('k') | chrome/browser/net/view_http_cache_job_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698