Index: chrome/browser/extensions/extension_management.cc |
diff --git a/chrome/browser/extensions/extension_management.cc b/chrome/browser/extensions/extension_management.cc |
index 8427cafde7c7614cde801244d2c6b2d47c3f4c69..a2209206476fa9e8b3c8aa8be08ebffb4cd5d3e7 100644 |
--- a/chrome/browser/extensions/extension_management.cc |
+++ b/chrome/browser/extensions/extension_management.cc |
@@ -387,7 +387,7 @@ void ExtensionManagement::Refresh() { |
int int_value; |
std::string string_value; |
if (it->GetAsInteger(&int_value) && int_value >= 0 && |
- int_value < Manifest::Type::NUM_LOAD_TYPES) { |
+ int_value <= Manifest::Type::TYPE_MAX) { |
global_settings_->allowed_types.push_back( |
static_cast<Manifest::Type>(int_value)); |
} else if (it->GetAsString(&string_value)) { |