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

Unified Diff: extensions/utility/utility_handler.cc

Issue 2952353002: Extensions: Pass current channel and feature session type to extension unpack utility process. (Closed)
Patch Set: Use a single file to hold enum traits. Created 3 years, 6 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 | « extensions/common/typemaps.gni ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/utility/utility_handler.cc
diff --git a/extensions/utility/utility_handler.cc b/extensions/utility/utility_handler.cc
index d63e9ec11191d326601ffd40b26dc4ce85691d2c..a726d32bfadf8a9f46fb5c65c5f80447efec480a 100644
--- a/extensions/utility/utility_handler.cc
+++ b/extensions/utility/utility_handler.cc
@@ -11,6 +11,8 @@
#include "extensions/common/extension_l10n_util.h"
#include "extensions/common/extension_unpacker.mojom.h"
#include "extensions/common/extensions_client.h"
+#include "extensions/common/features/feature_channel.h"
+#include "extensions/common/features/feature_session_type.h"
#include "extensions/common/manifest.h"
#include "extensions/common/manifest_parser.mojom.h"
#include "extensions/common/update_manifest.h"
@@ -51,7 +53,9 @@ class ExtensionUnpackerImpl : public extensions::mojom::ExtensionUnpacker {
}
}
- void Unpack(const base::FilePath& path,
+ void Unpack(version_info::Channel channel,
+ extensions::FeatureSessionType type,
+ const base::FilePath& path,
const std::string& extension_id,
Manifest::Location location,
int32_t creation_flags,
@@ -62,6 +66,10 @@ class ExtensionUnpackerImpl : public extensions::mojom::ExtensionUnpacker {
content::UtilityThread::Get()->EnsureBlinkInitialized();
+ // Initialize extension system global state.
+ SetCurrentChannel(channel);
+ SetCurrentFeatureSessionType(type);
+
Unpacker unpacker(path.DirName(), path, extension_id, location,
creation_flags);
if (unpacker.Run()) {
« no previous file with comments | « extensions/common/typemaps.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698