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

Unified Diff: mojo/services/catalog/factory.cc

Issue 1846953004: Reader (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@60subdir
Patch Set: . Created 4 years, 8 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 | « mojo/services/catalog/factory.h ('k') | mojo/services/catalog/reader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/catalog/factory.cc
diff --git a/mojo/services/catalog/factory.cc b/mojo/services/catalog/factory.cc
index 09b18064940a51a93cb6bd6b277f050fb13f494a..cb2d5ef8cb138c37f9652ce0357e27c12428630b 100644
--- a/mojo/services/catalog/factory.cc
+++ b/mojo/services/catalog/factory.cc
@@ -17,6 +17,14 @@ Factory::Factory(base::TaskRunner* file_task_runner, scoped_ptr<Store> store)
weak_factory_(this) {
mojo::shell::mojom::ShellClientRequest request = GetProxy(&shell_client_);
shell_connection_.reset(new mojo::ShellConnection(this, std::move(request)));
+
+ base::FilePath system_package_dir;
+ PathService::Get(base::DIR_MODULE, &system_package_dir);
+ reader_.reset(new Reader(
+ &system_catalog_,
+ file_task_runner_,
+ system_package_dir.Append(FILE_PATH_LITERAL("Mojo Applications"))));
+ reader_->ReadAllManifests();
}
Factory::~Factory() {}
« no previous file with comments | « mojo/services/catalog/factory.h ('k') | mojo/services/catalog/reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698