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

Unified Diff: services/catalog/entry.cc

Issue 2338793003: services/shell: Turn on sandboxing for mojo apps.
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/catalog/entry.h ('k') | services/catalog/store.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/catalog/entry.cc
diff --git a/services/catalog/entry.cc b/services/catalog/entry.cc
index 4cca6c3c2a76fe2649ffeef3fb24f42d48f6ad46..7da6b90956607eb5d25ee3817402221c2c83d8a3 100644
--- a/services/catalog/entry.cc
+++ b/services/catalog/entry.cc
@@ -245,6 +245,13 @@ std::unique_ptr<Entry> Entry::Deserialize(const base::DictionaryValue& value) {
}
}
+ // Privileged?
+ bool privileged = false;
+ if (value.HasKey(Store::kPrivilegedKey) &&
+ value.GetBoolean(Store::kPrivilegedKey, &privileged)) {
+ entry->set_privileged(privileged);
+ }
+
return entry;
}
@@ -279,6 +286,7 @@ shell::mojom::ResolveResultPtr
result->qualifier = input.qualifier();
result->capabilities = input.capabilities();
result->package_path = package.path();
+ result->privileged = input.privileged();
return result;
}
« no previous file with comments | « services/catalog/entry.h ('k') | services/catalog/store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698