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

Unified Diff: chrome/browser/extensions/component_loader.h

Issue 8477005: Add policies to specify an enterprise web store. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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: chrome/browser/extensions/component_loader.h
diff --git a/chrome/browser/extensions/component_loader.h b/chrome/browser/extensions/component_loader.h
index 6961098a73174cb5ae09c17f04d470b4fc9df541..942a951874fe6e242c2c1d7d5912595ee67d674a 100644
--- a/chrome/browser/extensions/component_loader.h
+++ b/chrome/browser/extensions/component_loader.h
@@ -9,6 +9,7 @@
#include <string>
#include "base/file_path.h"
+#include "base/values.h"
class Extension;
class ExtensionService;
@@ -28,7 +29,13 @@ class ComponentLoader {
// initialized, the extension is loaded; otherwise, the load is deferred
// until LoadAll is called.
const Extension* Add(const std::string& manifest,
- const FilePath& root_directory);
+ const FilePath& root_directory,
+ DictionaryValue* manifest_overrides);
+
+ const Extension* Add(const std::string& manifest,
+ const FilePath& root_directory) {
+ return Add(manifest, root_directory, NULL);
+ }
// Unloads a component extension and removes it from the list of component
// extensions to be loaded.
@@ -48,9 +55,11 @@ class ComponentLoader {
// Information about a registered component extension.
struct ComponentExtensionInfo {
ComponentExtensionInfo(const std::string& manifest,
- const FilePath& root_directory)
+ const FilePath& root_directory,
+ DictionaryValue* manifest_overrides)
: manifest(manifest),
- root_directory(root_directory) {
+ root_directory(root_directory),
+ manifest_overrides(manifest_overrides) {
}
bool Equals(const ComponentExtensionInfo& other) const;
@@ -61,6 +70,10 @@ class ComponentLoader {
// Directory where the extension is stored.
FilePath root_directory;
+
+ // If non-NULL, contains values that should be used to override the values
+ // specified in the manifest.
+ DictionaryValue* manifest_overrides;
};
// Loads a registered component extension.

Powered by Google App Engine
This is Rietveld 408576698