Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Unified Diff: components/component_updater/component_updater_paths.cc

Issue 321473003: Elevated install of recovery component (component update part) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/component_updater/component_updater_paths.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
« no previous file with comments | « components/component_updater/component_updater_paths.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698