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

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

Issue 1835863002: Added check for behavior feature existense (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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_util.cc
diff --git a/chrome/browser/extensions/extension_util.cc b/chrome/browser/extensions/extension_util.cc
index 6cb221c18faa016ed3cb4c3e356385390e3f7803..af2878b5cbb2719dedacc7143f1ce89b04cfb318 100644
--- a/chrome/browser/extensions/extension_util.cc
+++ b/chrome/browser/extensions/extension_util.cc
@@ -55,10 +55,8 @@ const char kHasSetScriptOnAllUrlsPrefName[] = "has_set_script_all_urls";
// Returns true if |extension| should always be enabled in incognito mode.
bool IsWhitelistedForIncognito(const Extension* extension) {
- return FeatureProvider::GetBehaviorFeature(
- BehaviorFeature::kWhitelistedForIncognito)
- ->IsAvailableToExtension(extension)
- .is_available();
+ return FeatureProvider::BehaviorFeatureIsAvailable(
+ BehaviorFeature::kWhitelistedForIncognito, extension);
}
// Returns |extension_id|. See note below.
« no previous file with comments | « no previous file | chrome/common/extensions/sync_helper.cc » ('j') | extensions/common/features/feature_provider.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698