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

Unified Diff: services/shell/standalone/context.cc

Issue 2377203005: services/shell: Allow injecting the location of resources.
Patch Set: Created 4 years, 3 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 | « services/shell/standalone/context.h ('k') | ui/views/mus/aura_init.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/standalone/context.cc
diff --git a/services/shell/standalone/context.cc b/services/shell/standalone/context.cc
index 03c4062ce85c07dea824b6f3086617bb15bc4ee0..be5ba8a9785fb48ae40bd18f4c70a4ab81b64601 100644
--- a/services/shell/standalone/context.cc
+++ b/services/shell/standalone/context.cc
@@ -166,6 +166,8 @@ void Context::Init(std::unique_ptr<InitParams> init_params) {
store = std::move(init_params->catalog_store);
catalog_.reset(
new catalog::Catalog(blocking_pool_.get(), std::move(store), nullptr));
+ if (!init_params->override_resource_path.empty())
+ catalog_->set_override_resource_path(init_params->override_resource_path);
service_manager_.reset(new ServiceManager(std::move(runner_factory),
catalog_->TakeService()));
« no previous file with comments | « services/shell/standalone/context.h ('k') | ui/views/mus/aura_init.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698