diff options
author | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-03 00:15:59 +0000 |
---|---|---|
committer | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-03 00:15:59 +0000 |
commit | e92475f94e575bbfb63a7b50164eb5e6177583a0 (patch) | |
tree | 130a8113719514d35ebe8d58ef0d238f2e7a160d /chrome/browser/extensions/extension.cc | |
parent | 0c7638d7ba98fe1793d54c1e299a0fd4e9c570f0 (diff) | |
download | chromium_src-e92475f94e575bbfb63a7b50164eb5e6177583a0.zip chromium_src-e92475f94e575bbfb63a7b50164eb5e6177583a0.tar.gz chromium_src-e92475f94e575bbfb63a7b50164eb5e6177583a0.tar.bz2 |
Fix ExtensionViewTest and reenable it.
Also, normalize extension IDs to lower case when reading them in. GURL
lower cases them when used as hostnames, so string comparisons need to be done
in lower case to work.
Review URL: http://codereview.chromium.org/28331
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10750 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension.cc')
-rw-r--r-- | chrome/browser/extensions/extension.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension.cc b/chrome/browser/extensions/extension.cc index 4f7a514..918268f 100644 --- a/chrome/browser/extensions/extension.cc +++ b/chrome/browser/extensions/extension.cc @@ -175,6 +175,10 @@ bool Extension::InitFromValue(const DictionaryValue& source, return false; } + // Normalize the string to lowercase, so it can be used as an URL component + // (where GURL will lowercase it). + StringToLowerASCII(&id_); + // Verify that the id is legal. The id is a hex string of the SHA-1 hash of // the public key. std::vector<uint8> id_bytes; |