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

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

Issue 9808101: Revert 128753 - Add full support for filesystem URLs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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/history/url_index_private_data.cc ('k') | chrome/browser/web_applications/web_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/url_fixer_upper.cc
===================================================================
--- chrome/browser/net/url_fixer_upper.cc (revision 128756)
+++ chrome/browser/net/url_fixer_upper.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2012 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.
@@ -412,13 +412,6 @@
url_parse::Component(0, static_cast<int>(scheme.length())))))
return scheme;
- if (scheme == chrome::kFileSystemScheme) {
- // Have the GURL parser do the heavy lifting for us.
- url_parse::ParseFileSystemURL(text.data(),
- static_cast<int>(text.length()), parts);
- return scheme;
- }
-
if (parts->scheme.is_valid()) {
// Have the GURL parser do the heavy lifting for us.
url_parse::ParseStandardURL(text.data(), static_cast<int>(text.length()),
@@ -485,13 +478,6 @@
if (scheme == chrome::kFileScheme)
return GURL(parts.scheme.is_valid() ? text : FixupPath(text));
- // We handle the filesystem scheme separately.
- if (scheme == chrome::kFileSystemScheme) {
- if (parts.inner_parsed() && parts.inner_parsed()->scheme.is_valid())
- return GURL(text);
- return GURL();
- }
-
// Parse and rebuild about: and chrome: URLs, except about:blank.
bool chrome_url = !LowerCaseEqualsASCII(trimmed, chrome::kAboutBlankURL) &&
((scheme == chrome::kAboutScheme) || (scheme == chrome::kChromeUIScheme));
« no previous file with comments | « chrome/browser/history/url_index_private_data.cc ('k') | chrome/browser/web_applications/web_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698