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

Unified Diff: chrome/browser/extensions/extension_management.cc

Issue 2925193002: NOT YET READY: UMA recording the kind of target frame when extensions pierce browsing instance.
Patch Set: Rebasing... 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
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)) {
« no previous file with comments | « chrome/browser/extensions/extension_functional_browsertest.cc ('k') | chrome/browser/extensions/installed_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698