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: services/catalog/catalog.h

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 | « chrome/app/mash/mash_runner.cc ('k') | services/catalog/catalog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/catalog/catalog.h
diff --git a/services/catalog/catalog.h b/services/catalog/catalog.h
index 7afced34b8ff0ac07c1c2cded4bca51ab7eb4a34..345b85baf7e75946e655ce0194ad010631d89941 100644
--- a/services/catalog/catalog.h
+++ b/services/catalog/catalog.h
@@ -9,6 +9,7 @@
#include <memory>
#include <string>
+#include "base/files/file_path.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "components/filesystem/public/interfaces/directory.mojom.h"
@@ -57,6 +58,11 @@ class Catalog : public shell::Service,
shell::mojom::ServicePtr TakeService();
+ void set_override_resource_path(
+ const base::FilePath::StringType& resource_path) {
+ override_resource_path_ = resource_path;
+ }
+
private:
explicit Catalog(std::unique_ptr<Store> store);
@@ -94,6 +100,7 @@ class Catalog : public shell::Service,
EntryCache system_cache_;
bool loaded_ = false;
+ base::FilePath::StringType override_resource_path_;
scoped_refptr<filesystem::LockTable> lock_table_;
base::WeakPtrFactory<Catalog> weak_factory_;
« no previous file with comments | « chrome/app/mash/mash_runner.cc ('k') | services/catalog/catalog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698