| Index: extensions/common/file_util.cc
|
| diff --git a/extensions/common/file_util.cc b/extensions/common/file_util.cc
|
| index 763fa29f6ca4318ef79dad528e1ba771876154fe..fa421d72d434189ce9b04b93d9fa9d8e7355eb84 100644
|
| --- a/extensions/common/file_util.cc
|
| +++ b/extensions/common/file_util.cc
|
| @@ -52,18 +52,6 @@ enum SafeInstallationFlag {
|
| };
|
| SafeInstallationFlag g_use_safe_installation = DEFAULT;
|
|
|
| -// Returns true if the given file path exists and is not zero-length.
|
| -bool ValidateFilePath(const base::FilePath& path) {
|
| - int64 size = 0;
|
| - if (!base::PathExists(path) ||
|
| - !base::GetFileSize(path, &size) ||
|
| - size == 0) {
|
| - return false;
|
| - }
|
| -
|
| - return true;
|
| -}
|
| -
|
| // Returns true if the extension installation should flush all files and the
|
| // directory.
|
| bool UseSafeInstallation() {
|
| @@ -271,6 +259,15 @@ scoped_ptr<base::DictionaryValue> LoadManifest(
|
| return base::DictionaryValue::From(root.Pass());
|
| }
|
|
|
| +bool ValidateFilePath(const base::FilePath& path) {
|
| + int64 size = 0;
|
| + if (!base::PathExists(path) || !base::GetFileSize(path, &size) || size == 0) {
|
| + return false;
|
| + }
|
| +
|
| + return true;
|
| +}
|
| +
|
| bool ValidateExtension(const Extension* extension,
|
| std::string* error,
|
| std::vector<InstallWarning>* warnings) {
|
|
|