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

Unified Diff: chrome/browser/icon_loader.cc

Issue 173216: Move gtk_settings_get_default() call to the UI thread. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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 | « base/mime_util_linux.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/icon_loader.cc
===================================================================
--- chrome/browser/icon_loader.cc (revision 23879)
+++ chrome/browser/icon_loader.cc (working copy)
@@ -5,6 +5,7 @@
#include "chrome/browser/icon_loader.h"
#include "base/message_loop.h"
+#include "base/mime_util.h"
#include "base/thread.h"
#include "chrome/browser/browser_process.h"
#include "third_party/skia/include/core/SkBitmap.h"
@@ -24,6 +25,11 @@
void IconLoader::Start() {
target_message_loop_ = MessageLoop::current();
+#if defined(OS_LINUX)
+ // This call must happen on the UI thread before we can start loading icons.
+ mime_util::DetectGtkTheme();
+#endif
+
g_browser_process->file_thread()->message_loop()->PostTask(FROM_HERE,
NewRunnableMethod(this, &IconLoader::ReadIcon));
}
« no previous file with comments | « base/mime_util_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698