Files
brave-core/browser/ui/session_crashed_bubble_brave.cc
Claudio DeSouza 579ba8a362 [cr142] Various functions taking BrowserWindowInterface*
This is part of the bedrock project and has affected a few functions,
that used to take `Browser*`.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/16eb4103fa3cb36a7dd89776ec661625c8ccab7f

commit 16eb4103fa3cb36a7dd89776ec661625c8ccab7f
Author: Glenn Hartmann <hartmanng@chromium.org>
Date:   Wed Sep 10 13:07:13 2025 -0700

    [bedrock] Transition application_launch.cc away from BrowserList::OrderedByActivation().

    This migration is part of project bedrock to reduce the dependencies on
    Browser and BrowserList. See https://crbug.com/431671320 for more info.

    Bug: 438458102
    Change-Id: I6a6a6964216e39447ac9da869b3d41a3a5a294a4
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6932034
    Reviewed-by: Tom Lukaszewicz <tluk@chromium.org>
    Commit-Queue: Glenn Hartmann <hartmanng@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1513886}
2025-10-15 18:31:59 -04:00

25 lines
990 B
C++

/* Copyright (c) 2021 The Brave Authors. All rights reserved.
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "brave/browser/metrics/metrics_reporting_util.h"
#include "brave/browser/ui/browser_dialogs.h"
#include "chrome/browser/ui/browser_window/public/browser_window_interface.h"
#include "chrome/browser/ui/session_crashed_bubble.h"
// static
void SessionCrashedBubble::ShowIfNotOffTheRecordProfileBrave(
BrowserWindowInterface* browser,
bool skip_tab_checking) {
// If crash report permission ask dialog is launched, tab restore bubble will
// be shown after closing aks dialog.
if (ShouldShowCrashReportPermissionAskDialog()) {
brave::ShowCrashReportPermissionAskDialog(
browser->GetBrowserForMigrationOnly());
return;
}
ShowIfNotOffTheRecordProfile(browser, skip_tab_checking);
}