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

Unified Diff: chrome/browser/ui/extensions/application_launch.cc

Issue 1835863002: Added check for behavior feature existense (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make Get*Feature return |nullptr| instead crash if feature is missing Created 4 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
« no previous file with comments | « chrome/browser/extensions/extension_util.cc ('k') | chrome/common/extensions/sync_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/extensions/application_launch.cc
diff --git a/chrome/browser/ui/extensions/application_launch.cc b/chrome/browser/ui/extensions/application_launch.cc
index f2625ff966373827ab61f031d755782d6172fb37..47a3f477ec8aa457c903d46c5f9ee8f47a520356 100644
--- a/chrome/browser/ui/extensions/application_launch.cc
+++ b/chrome/browser/ui/extensions/application_launch.cc
@@ -410,5 +410,5 @@ WebContents* OpenAppShortcutWindow(Profile* profile,
bool CanLaunchViaEvent(const extensions::Extension* extension) {
const extensions::Feature* feature =
extensions::FeatureProvider::GetAPIFeature("app.runtime");
- return feature->IsAvailableToExtension(extension).is_available();
+ return feature && feature->IsAvailableToExtension(extension).is_available();
}
« no previous file with comments | « chrome/browser/extensions/extension_util.cc ('k') | chrome/common/extensions/sync_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698