Index: chrome/browser/browser_process_impl.h |
diff --git a/chrome/browser/browser_process_impl.h b/chrome/browser/browser_process_impl.h |
index 55b9dc2cf02cc29905e7923b3e4c75a4f1620749..0550ad9d666ed8edba3d4c1d035b8ce82788a929 100644 |
--- a/chrome/browser/browser_process_impl.h |
+++ b/chrome/browser/browser_process_impl.h |
@@ -73,6 +73,16 @@ class BrowserProcessImpl : public BrowserProcess, public NonThreadSafe { |
return db_thread_.get(); |
} |
+#if defined(OS_LINUX) |
+ virtual base::Thread* background_x11_thread() { |
+ DCHECK(CalledOnValidThread()); |
+ // The BACKGROUND_X11 thread is created when the IO thread is created. |
+ if (!created_io_thread_) |
+ CreateIOThread(); |
+ return background_x11_thread_.get(); |
+ } |
+#endif |
+ |
virtual ProfileManager* profile_manager() { |
DCHECK(CalledOnValidThread()); |
if (!created_profile_manager_) |
@@ -211,6 +221,10 @@ class BrowserProcessImpl : public BrowserProcess, public NonThreadSafe { |
bool created_io_thread_; |
scoped_ptr<base::Thread> io_thread_; |
+#if defined(OS_LINUX) |
+ // This shares a created flag with the IO thread. |
+ scoped_ptr<base::Thread> background_x11_thread_; |
+#endif |
bool created_file_thread_; |
scoped_ptr<base::Thread> file_thread_; |