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

Unified Diff: chrome/common/extensions/extension_unpacker.cc

Issue 8423003: Enable experimental permissions for extensions from the store. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Windows compile warning Created 9 years, 2 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: chrome/common/extensions/extension_unpacker.cc
diff --git a/chrome/common/extensions/extension_unpacker.cc b/chrome/common/extensions/extension_unpacker.cc
index 3c729a47c745d54338f97c27930af78364b53895..bf2452eb0886a90ff48224a32941c25e2f8bf4eb 100644
--- a/chrome/common/extensions/extension_unpacker.cc
+++ b/chrome/common/extensions/extension_unpacker.cc
@@ -84,8 +84,11 @@ bool PathContainsParentDirectory(const FilePath& path) {
} // namespace
-ExtensionUnpacker::ExtensionUnpacker(const FilePath& extension_path)
- : extension_path_(extension_path) {
+ExtensionUnpacker::ExtensionUnpacker(const FilePath& extension_path,
+ Extension::Location location,
+ int creation_flags)
+ : extension_path_(extension_path), location_(location),
+ creation_flags_(creation_flags) {
}
ExtensionUnpacker::~ExtensionUnpacker() {
@@ -178,9 +181,9 @@ bool ExtensionUnpacker::Run() {
std::string error;
scoped_refptr<Extension> extension(Extension::Create(
temp_install_dir_,
- Extension::INVALID,
+ location_,
*parsed_manifest_,
- Extension::NO_FLAGS,
+ creation_flags_,
&error));
if (!extension.get()) {
SetError(error);
« no previous file with comments | « chrome/common/extensions/extension_unpacker.h ('k') | chrome/common/extensions/extension_unpacker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698