Index: chrome/common/extensions/extension_resource.cc |
diff --git a/chrome/common/extensions/extension_resource.cc b/chrome/common/extensions/extension_resource.cc |
index d3c58985c099cdb6031082f6aafe2c0b9cf711b1..be22ec9aff4335881b2640b974d165d033e45c32 100644 |
--- a/chrome/common/extensions/extension_resource.cc |
+++ b/chrome/common/extensions/extension_resource.cc |
@@ -6,6 +6,7 @@ |
#include "base/file_util.h" |
#include "base/logging.h" |
+#include "base/thread_restrictions.h" |
PlatformThreadId ExtensionResource::file_thread_id_ = 0; |
@@ -45,6 +46,12 @@ const FilePath& ExtensionResource::GetFilePath() const { |
// static |
FilePath ExtensionResource::GetFilePathOnAnyThreadHack( |
const FilePath& extension_root, const FilePath& relative_path) { |
+ // This function is a hack, and causes us to block the IO thread. |
+ // Fixing |
+ // http://code.google.com/p/chromium/issues/detail?id=59849 |
+ // would also fix this. Suppress the error for now. |
+ base::ThreadRestrictions::ScopedAllowIO allow_io; |
+ |
// We need to resolve the parent references in the extension_root |
// path on its own because IsParent doesn't like parent references. |
FilePath clean_extension_root(extension_root); |