linux_aura: run IconLoader::ReadIcon on the UI thread.
The implementation goes through GTK's native icon routines which are not
thread-safe.
BUG=350545
Review URL: https://codereview.chromium.org/192883004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256391 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/icon_loader.h b/chrome/browser/icon_loader.h
index ef60212..0e48a45 100644
--- a/chrome/browser/icon_loader.h
+++ b/chrome/browser/icon_loader.h
@@ -14,6 +14,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop_proxy.h"
+#include "content/public/browser/browser_thread.h"
#include "ui/gfx/image/image.h"
#if defined(OS_WIN)
@@ -77,6 +78,9 @@
// Some icons (exe's on windows) can change as they're loaded.
static bool IsIconMutableFromFilepath(const base::FilePath& path);
+ // The thread ReadIcon() should be called on.
+ static content::BrowserThread::ID ReadIconThreadID();
+
void ReadGroup();
void OnReadGroup();
void ReadIcon();