diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-06 05:06:20 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-06 05:06:20 +0000 |
commit | 7fc13edf63fcb30391edec083ea496809607917a (patch) | |
tree | 16d7123511520ba9b7f1ca1d36093bdc71dc97d1 /chrome/common/url_constants.cc | |
parent | 309d27740389acc1cfdda031b8fb43781e6022a3 (diff) | |
download | chromium_src-7fc13edf63fcb30391edec083ea496809607917a.zip chromium_src-7fc13edf63fcb30391edec083ea496809607917a.tar.gz chromium_src-7fc13edf63fcb30391edec083ea496809607917a.tar.bz2 |
Pulls the latest googleurl to get the fix for
BUG=http://crbug.com/160
and integrates the update to IsStandard in that version. Adds several internal
schemes as "standard" and initializes them at startup. Fixes a few hardcoded
URL schemes I noticed.
Make typing "//foo" into the URL bar treat slashes in "strict" mode on Windows,
which means we'll only accept UNC if you use backslashes. This matches IE's
behavior.
BUG=http://crbug.com/33038
TEST=covered by unit tests
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40818 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/url_constants.cc')
-rw-r--r-- | chrome/common/url_constants.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/common/url_constants.cc b/chrome/common/url_constants.cc index 6ddf90c..f2e3ff7 100644 --- a/chrome/common/url_constants.cc +++ b/chrome/common/url_constants.cc @@ -5,6 +5,7 @@ #include <stdlib.h> #include "chrome/common/url_constants.h" +#include "googleurl/src/url_util.h" namespace chrome { @@ -82,4 +83,11 @@ const char kSyncSetupDonePath[] = "setupdone"; const char kNetworkViewInternalsURL[] = "chrome://net-internals/"; const char kNetworkViewCacheURL[] = "chrome://net-internals/view-cache"; +void RegisterChromeSchemes() { + // Don't need "chrome-internal" which was used in old versions of Chrome for + // the new tab page. + url_util::AddStandardScheme(kChromeUIScheme); + url_util::AddStandardScheme(kExtensionScheme); +} + } // namespace chrome |