| Index: chrome/browser/component_updater/recovery_component_installer.cc
|
| diff --git a/chrome/browser/component_updater/recovery_component_installer.cc b/chrome/browser/component_updater/recovery_component_installer.cc
|
| index f6b5727a1331714c4db37d52a88d90631f33e55d..897230ea4e7ea65c461548a65dbf95883c0dd3f3 100644
|
| --- a/chrome/browser/component_updater/recovery_component_installer.cc
|
| +++ b/chrome/browser/component_updater/recovery_component_installer.cc
|
| @@ -120,6 +120,11 @@ bool RecoveryComponentInstaller::Install(const base::DictionaryValue& manifest,
|
| base::FilePath path;
|
| if (!PathService::Get(DIR_RECOVERY_BASE, &path))
|
| return false;
|
| + if (!base::PathExists(path)) {
|
| + if (!base::CreateDirectory(path)) {
|
| + return false;
|
| + }
|
| + }
|
| path = path.AppendASCII(version.GetString());
|
| if (base::PathExists(path) && !base::DeleteFile(path, true))
|
| return false;
|
|
|