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

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

Issue 1844973002: Implement a system-level entry cache so that packages loaded from the system dir can be visible to … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 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
Index: mojo/services/catalog/factory.cc
diff --git a/mojo/services/catalog/factory.cc b/mojo/services/catalog/factory.cc
index 2b6229921b3e96d4e55b142eea4f0263b451075b..09b18064940a51a93cb6bd6b277f050fb13f494a 100644
--- a/mojo/services/catalog/factory.cc
+++ b/mojo/services/catalog/factory.cc
@@ -58,7 +58,8 @@ Catalog* Factory::GetCatalogForUserId(const std::string& user_id) {
return it->second.get();
// TODO(beng): There needs to be a way to load the store from different users.
- Catalog* instance = new Catalog(std::move(store_), file_task_runner_);
+ Catalog* instance =
+ new Catalog(std::move(store_), file_task_runner_, &system_catalog_);
catalogs_[user_id] = make_scoped_ptr(instance);
return instance;
}

Powered by Google App Engine
This is Rietveld 408576698