aboutsummaryrefslogtreecommitdiff
path: root/devel/electron13/files/patch-chrome_browser_after__startup__task__utils.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron13/files/patch-chrome_browser_after__startup__task__utils.cc')
-rw-r--r--devel/electron13/files/patch-chrome_browser_after__startup__task__utils.cc38
1 files changed, 38 insertions, 0 deletions
diff --git a/devel/electron13/files/patch-chrome_browser_after__startup__task__utils.cc b/devel/electron13/files/patch-chrome_browser_after__startup__task__utils.cc
new file mode 100644
index 000000000000..a7fa0c0eee84
--- /dev/null
+++ b/devel/electron13/files/patch-chrome_browser_after__startup__task__utils.cc
@@ -0,0 +1,38 @@
+--- chrome/browser/after_startup_task_utils.cc.orig 2021-07-15 19:13:32 UTC
++++ chrome/browser/after_startup_task_utils.cc
+@@ -35,7 +35,7 @@
+
+ // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
+ // of lacros-chrome is complete.
+-#if defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
++#if defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || defined(OS_BSD)
+ #include "ui/views/linux_ui/linux_ui.h"
+ #endif
+
+@@ -113,7 +113,7 @@ void QueueTask(std::unique_ptr<AfterStartupTask> queue
+
+ void SetBrowserStartupIsComplete() {
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
+-#if defined(OS_MAC) || defined(OS_WIN) || defined(OS_LINUX) || \
++#if defined(OS_MAC) || defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD) || \
+ defined(OS_CHROMEOS)
+ // Process::Current().CreationTime() is not available on all platforms.
+ const base::Time process_creation_time =
+@@ -122,7 +122,7 @@ void SetBrowserStartupIsComplete() {
+ UMA_HISTOGRAM_LONG_TIMES("Startup.AfterStartupTaskDelayedUntilTime",
+ base::Time::Now() - process_creation_time);
+ }
+-#endif // defined(OS_MAC) || defined(OS_WIN) || defined(OS_LINUX) ||
++#endif // defined(OS_MAC) || defined(OS_WIN) || defined(OS_LINUX) || defined(OS_BSD) ||
+ // defined(OS_CHROMEOS)
+ UMA_HISTOGRAM_COUNTS_10000("Startup.AfterStartupTaskCount",
+ g_after_startup_tasks.Get().size());
+@@ -134,7 +134,7 @@ void SetBrowserStartupIsComplete() {
+
+ // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
+ // of lacros-chrome is complete.
+-#if defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
++#if defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || defined(OS_BSD)
+ // Make sure we complete the startup notification sequence, or launchers will
+ // get confused by not receiving the expected message from the main process.
+ views::LinuxUI* linux_ui = views::LinuxUI::instance();