chore: bump chromium to 104.0.5073.0 (main) (#34272)
This commit is contained in:
parent
3849d19e14
commit
470396d6ac
112 changed files with 663 additions and 589 deletions
|
@ -45,14 +45,14 @@ NSAlert* CreateNSAlert(const MessageBoxSettings& settings) {
|
|||
|
||||
switch (settings.type) {
|
||||
case MessageBoxType::kInformation:
|
||||
alert.alertStyle = NSInformationalAlertStyle;
|
||||
alert.alertStyle = NSAlertStyleInformational;
|
||||
break;
|
||||
case MessageBoxType::kWarning:
|
||||
case MessageBoxType::kError:
|
||||
// NSWarningAlertStyle shows the app icon while NSCriticalAlertStyle
|
||||
// NSWarningAlertStyle shows the app icon while NSAlertStyleCritical
|
||||
// shows a warning icon with an app icon badge. Since there is no
|
||||
// error variant, lets just use NSCriticalAlertStyle.
|
||||
alert.alertStyle = NSCriticalAlertStyle;
|
||||
// error variant, lets just use NSAlertStyleCritical.
|
||||
alert.alertStyle = NSAlertStyleCritical;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -198,7 +198,7 @@ void ShowErrorBox(const std::u16string& title, const std::u16string& content) {
|
|||
NSAlert* alert = [[NSAlert alloc] init];
|
||||
[alert setMessageText:base::SysUTF16ToNSString(title)];
|
||||
[alert setInformativeText:base::SysUTF16ToNSString(content)];
|
||||
[alert setAlertStyle:NSCriticalAlertStyle];
|
||||
[alert setAlertStyle:NSAlertStyleCritical];
|
||||
[alert runModal];
|
||||
[alert release];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue