Index: components/component_updater/component_updater_paths.cc |
diff --git a/components/component_updater/component_updater_paths.cc b/components/component_updater/component_updater_paths.cc |
index bf9f4d39afb3fdd19b0e53ff5412cf8d8dcb391a..d2f77e733cd27ebf84a16c38b22801f61684c847 100644 |
--- a/components/component_updater/component_updater_paths.cc |
+++ b/components/component_updater/component_updater_paths.cc |
@@ -18,6 +18,14 @@ static base::LazyInstance<base::FilePath> g_components_root = |
bool PathProvider(int key, base::FilePath* result) { |
DCHECK(!g_components_root.Get().empty()); |
+ if (key == DIR_SECURE_RECOVERY_BASE) { |
+ base::FilePath cur; |
+ if (!PathService::Get(base::DIR_MODULE, &cur)) |
+ return false; |
+ *result = cur.Append(FILE_PATH_LITERAL("recovery")); |
+ return true; |
+ } |
+ |
base::FilePath cur = g_components_root.Get(); |
switch (key) { |
case DIR_COMPONENT_CLD2: |