Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7325)

Unified Diff: chrome/browser/ui/views/chrome_views_delegate.cc

Issue 1089003003: Pass a TaskRunner through ViewsDelegate to put AX init on FILE thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment about FILE thread Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/chrome_views_delegate.h ('k') | ui/accessibility/platform/atk_util_auralinux.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/chrome_views_delegate.cc
diff --git a/chrome/browser/ui/views/chrome_views_delegate.cc b/chrome/browser/ui/views/chrome_views_delegate.cc
index 01a0585b453c120f092c3c3f5e217d82f5e15755..4e935736ee9e53190c397394b37ad79e0fbe4321 100644
--- a/chrome/browser/ui/views/chrome_views_delegate.cc
+++ b/chrome/browser/ui/views/chrome_views_delegate.cc
@@ -14,6 +14,7 @@
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/ui/browser_window_state.h"
#include "chrome/common/chrome_version_info.h"
+#include "content/public/browser/browser_thread.h"
#include "content/public/browser/context_factory.h"
#include "grit/chrome_unscaled_resources.h"
#include "ui/base/resource/resource_bundle.h"
@@ -388,6 +389,16 @@ std::string ChromeViewsDelegate::GetApplicationName() {
return chrome::VersionInfo().Name();
}
+#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+scoped_refptr<base::TaskRunner>
+ ChromeViewsDelegate::GetTaskRunnerForAuraLinuxAccessibilityInit() {
+ // This should be on the FILE thread so that we can open libatk-bridge.so
+ // without blocking.
+ return content::BrowserThread::GetMessageLoopProxyForThread(
+ content::BrowserThread::FILE);
+}
+#endif
+
#if defined(OS_WIN)
int ChromeViewsDelegate::GetAppbarAutohideEdges(HMONITOR monitor,
const base::Closure& callback) {
« no previous file with comments | « chrome/browser/ui/views/chrome_views_delegate.h ('k') | ui/accessibility/platform/atk_util_auralinux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698