Skip to content

Commit ef26466

Browse files
committed
Disable default browser modal for non-official build
This could bother developers. F/U PR for #7716. fix brave/brave-browser#12203
1 parent de3cccc commit ef26466

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

browser/ui/startup/default_brave_browser_prompt.cc

+6
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ bool ShouldShowDefaultBrowserPrompt(Profile* profile) {
133133
} // namespace
134134

135135
void ShowDefaultBraveBrowserPrompt(Profile* profile) {
136+
#if !defined(OFFICIAL_BUILD)
137+
// Disable in developer build. Showing with infobar didn't bother much but
138+
// modal dialog could distract developers.
139+
return;
140+
#endif
141+
136142
// Do not check if Chrome is the default browser if there is a policy in
137143
// control of this setting.
138144
if (g_browser_process->local_state()->IsManagedPreference(

0 commit comments

Comments
 (0)