Index: chrome/browser/notifications/notification_platform_bridge_linux.cc |
diff --git a/chrome/browser/notifications/notification_platform_bridge_linux.cc b/chrome/browser/notifications/notification_platform_bridge_linux.cc |
index a7d134437114871661c78e7cb416d22f3015c9cd..020082f5a9fe6ec6adf0af9b45e15eff6ab9c91a 100644 |
--- a/chrome/browser/notifications/notification_platform_bridge_linux.cc |
+++ b/chrome/browser/notifications/notification_platform_bridge_linux.cc |
@@ -238,6 +238,10 @@ class NotificationPlatformBridgeLinuxImpl |
explicit NotificationPlatformBridgeLinuxImpl(scoped_refptr<dbus::Bus> bus) |
: bus_(bus) { |
DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
+ // While the tasks in NotificationPlatformBridgeLinux merely need |
+ // to run in sequence, many APIs in ::dbus are required to be |
+ // called from the same thread (https://crbug.com/130984), so |
+ // |task_runner_| is created as the single-threaded flavor. |
task_runner_ = base::CreateSingleThreadTaskRunnerWithTraits( |
{base::MayBlock(), base::TaskPriority::USER_BLOCKING}); |
registrar_.Add(this, chrome::NOTIFICATION_APP_TERMINATING, |