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

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

Issue 2191713003: [Extensions UI] Check for a browser not being found (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/browser/ui/extensions/settings_api_bubble_helpers.cc
diff --git a/chrome/browser/ui/extensions/settings_api_bubble_helpers.cc b/chrome/browser/ui/extensions/settings_api_bubble_helpers.cc
index 0a11041815bdf9248d90ce859c77160cd6a0d26f..354248c59a2f1b9116b0369ed00f9256684961cb 100644
--- a/chrome/browser/ui/extensions/settings_api_bubble_helpers.cc
+++ b/chrome/browser/ui/extensions/settings_api_bubble_helpers.cc
@@ -65,7 +65,8 @@ void MaybeShowExtensionControlledSearchNotification(
if (AutocompleteMatch::IsSearchType(match_type) &&
match_type != AutocompleteMatchType::SEARCH_OTHER_ENGINE) {
Browser* browser = chrome::FindBrowserWithWebContents(web_contents);
- ShowSettingsApiBubble(BUBBLE_TYPE_SEARCH_ENGINE, browser);
+ if (browser)
+ ShowSettingsApiBubble(BUBBLE_TYPE_SEARCH_ENGINE, browser);
}
}
« 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