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

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

Issue 12326054: *Not* allow extension features if json file fails to load (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension.cc
diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc
index 5cb08067560f211d0ca11ed3395aaa5f8c61480e..6dadfcd4815e01587031d41e8da61aabea207b23 100644
--- a/chrome/common/extensions/extension.cc
+++ b/chrome/common/extensions/extension.cc
@@ -603,8 +603,10 @@ bool Extension::ParsePermissions(const char* key,
// permission is added.
DCHECK(feature);
// http://crbug.com/176381
- if (!feature)
+ if (!feature) {
+ to_remove.push_back(it->id());
continue;
+ }
Feature::Availability availability =
feature->IsAvailableToManifest(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698