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

Unified Diff: extensions/common/common_param_traits.h

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/BUILD.gn ('k') | extensions/common/extension_message_generator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/common_param_traits.h
diff --git a/extensions/common/manifest_location_param_traits.h b/extensions/common/common_param_traits.h
similarity index 63%
rename from extensions/common/manifest_location_param_traits.h
rename to extensions/common/common_param_traits.h
index c0e8d3d9a32f19df0d3dc5c4e6890fdf6ff363d5..fef200246fc24901c187345e4f25078ad9252f60 100644
--- a/extensions/common/manifest_location_param_traits.h
+++ b/extensions/common/common_param_traits.h
@@ -4,10 +4,15 @@
// Multiply-included file, hence no include guard.
+#include "components/version_info/version_info.h"
+#include "extensions/common/features/feature_session_type.h"
#include "extensions/common/manifest.h"
#include "ipc/ipc_message_macros.h"
#include "ipc/param_traits_macros.h"
+IPC_ENUM_TRAITS_MAX_VALUE(version_info::Channel, version_info::Channel::STABLE)
+IPC_ENUM_TRAITS_MAX_VALUE(extensions::FeatureSessionType,
+ extensions::FeatureSessionType::LAST)
IPC_ENUM_TRAITS_MIN_MAX_VALUE(extensions::Manifest::Location,
extensions::Manifest::INVALID_LOCATION,
extensions::Manifest::NUM_LOCATIONS - 1)
« no previous file with comments | « extensions/common/BUILD.gn ('k') | extensions/common/extension_message_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698