Fixes a crash when opening a guest profile with the Brave News button enabled. (#15138)
This commit is contained in:
@@ -119,7 +119,8 @@ void AttachTabHelpers(content::WebContents* web_contents) {
|
||||
#endif
|
||||
|
||||
if (base::FeatureList::IsEnabled(
|
||||
brave_today::features::kBraveNewsSubscribeButtonFeature)) {
|
||||
brave_today::features::kBraveNewsSubscribeButtonFeature) &&
|
||||
!web_contents->GetBrowserContext()->IsOffTheRecord()) {
|
||||
BraveNewsTabHelper::CreateForWebContents(web_contents);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user