diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-18 02:39:16 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-18 02:39:16 +0000 |
commit | 99efb7b19b5ecb8e7f8f3b646f191fda8a756841 (patch) | |
tree | 3d569055ca0cfa7a1af56e3226c89927117006b8 /chrome/common/extensions/extension_unpacker.cc | |
parent | 4bd50cba12dc8311d3913569c3d43aa64f7312d0 (diff) | |
download | chromium_src-99efb7b19b5ecb8e7f8f3b646f191fda8a756841.zip chromium_src-99efb7b19b5ecb8e7f8f3b646f191fda8a756841.tar.gz chromium_src-99efb7b19b5ecb8e7f8f3b646f191fda8a756841.tar.bz2 |
Extensions: file handling clean up.
- remove various invalid uses of ASCII functions
- properly escape resource requests
- clean up file path handling
Some work remains to be done on the last bullet point but this is enough to fix the bug.
BUG=30509
TEST=see bug
Review URL: http://codereview.chromium.org/501046
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34923 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension_unpacker.cc')
-rw-r--r-- | chrome/common/extensions/extension_unpacker.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/common/extensions/extension_unpacker.cc b/chrome/common/extensions/extension_unpacker.cc index e5c7758..425105f 100644 --- a/chrome/common/extensions/extension_unpacker.cc +++ b/chrome/common/extensions/extension_unpacker.cc @@ -88,7 +88,7 @@ static bool PathContainsParentDirectory(const FilePath& path) { DictionaryValue* ExtensionUnpacker::ReadManifest() { FilePath manifest_path = - temp_install_dir_.AppendASCII(Extension::kManifestFilename); + temp_install_dir_.Append(Extension::kManifestFilename); if (!file_util::PathExists(manifest_path)) { SetError(errors::kInvalidManifest); return NULL; @@ -113,7 +113,7 @@ DictionaryValue* ExtensionUnpacker::ReadManifest() { bool ExtensionUnpacker::ReadAllMessageCatalogs( const std::string& default_locale) { FilePath locales_path = - temp_install_dir_.AppendASCII(Extension::kLocaleFolder); + temp_install_dir_.Append(Extension::kLocaleFolder); // Treat all folders under _locales as valid locales. file_util::FileEnumerator locales(locales_path, @@ -134,7 +134,7 @@ bool ExtensionUnpacker::ReadAllMessageCatalogs( continue; FilePath messages_path = - locale_path.AppendASCII(Extension::kMessagesFilename); + locale_path.Append(Extension::kMessagesFilename); if (!ReadMessageCatalog(messages_path)) return false; |