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

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

Issue 10217017: Allow features to refer to subkeys in _manifest_features.json. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Validate gives errors again Created 8 years, 8 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/common/extensions/extension.cc
diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc
index 5d5045c95f7d2e78ad5ae829e5e89784aeb6b03c..a4824ee736b5a255bf85d4f884cdd4fd6961ff9e 100644
--- a/chrome/common/extensions/extension.cc
+++ b/chrome/common/extensions/extension.cc
@@ -1881,8 +1881,7 @@ bool Extension::LoadBackgroundPersistent(
!manifest_->Get(keys::kBackgroundPersistent, &background_persistent))
return true;
- if (!background_persistent->IsType(Value::TYPE_BOOLEAN) ||
- !background_persistent->GetAsBoolean(&background_page_is_persistent_)) {
+ if (!background_persistent->GetAsBoolean(&background_page_is_persistent_)) {
*error = ASCIIToUTF16(errors::kInvalidBackgroundPersistent);
return false;
}

Powered by Google App Engine
This is Rietveld 408576698