| Index: extensions/common/file_util.cc
|
| diff --git a/extensions/common/file_util.cc b/extensions/common/file_util.cc
|
| index 0a116ad329570d9bc13e45fe366a5ae12126c4fc..8f025dbc916696a356fb22588ee99bf1a61044eb 100644
|
| --- a/extensions/common/file_util.cc
|
| +++ b/extensions/common/file_util.cc
|
| @@ -155,7 +155,14 @@ scoped_refptr<Extension> LoadExtension(const base::FilePath& extension_path,
|
|
|
| base::DictionaryValue* LoadManifest(const base::FilePath& extension_path,
|
| std::string* error) {
|
| - base::FilePath manifest_path = extension_path.Append(kManifestFilename);
|
| + return LoadManifest(extension_path, kManifestFilename, error);
|
| +}
|
| +
|
| +base::DictionaryValue* LoadManifest(
|
| + const base::FilePath& extension_path,
|
| + const base::FilePath::CharType* manifest_filename,
|
| + std::string* error) {
|
| + base::FilePath manifest_path = extension_path.Append(manifest_filename);
|
| if (!base::PathExists(manifest_path)) {
|
| *error = l10n_util::GetStringUTF8(IDS_EXTENSION_MANIFEST_UNREADABLE);
|
| return NULL;
|
|
|