Index: chrome/browser/extensions/lazy_background_page_apitest.cc |
diff --git a/chrome/browser/extensions/lazy_background_page_apitest.cc b/chrome/browser/extensions/lazy_background_page_apitest.cc |
index 5b0696b90b2a68dad0651a9e8a55bfe6d68e9437..ead2b674f09d0d7c095f033f3e39b4411708470a 100644 |
--- a/chrome/browser/extensions/lazy_background_page_apitest.cc |
+++ b/chrome/browser/extensions/lazy_background_page_apitest.cc |
@@ -10,6 +10,7 @@ |
#include "base/path_service.h" |
#include "base/scoped_observer.h" |
#include "base/strings/utf_string_conversions.h" |
+#include "base/threading/thread_restrictions.h" |
#include "build/build_config.h" |
#include "chrome/browser/bookmarks/bookmark_model_factory.h" |
#include "chrome/browser/extensions/browser_action_test_util.h" |
@@ -318,6 +319,7 @@ IN_PROC_BROWSER_TEST_F(LazyBackgroundPageApiTest, WaitForRequest) { |
IN_PROC_BROWSER_TEST_F(LazyBackgroundPageApiTest, NaClInBackgroundPage) { |
{ |
base::FilePath extdir; |
+ base::ThreadRestrictions::ScopedAllowIO allow_io; |
ASSERT_TRUE(PathService::Get(chrome::DIR_GEN_TEST_DATA, &extdir)); |
extdir = extdir.AppendASCII("ppapi/tests/extensions/load_unload/newlib"); |
LazyBackgroundObserver page_complete; |
@@ -354,6 +356,7 @@ IN_PROC_BROWSER_TEST_F(LazyBackgroundPageApiTest, NaClInView) { |
// page, and the Lazy Background Page stays alive. |
{ |
base::FilePath extdir; |
+ base::ThreadRestrictions::ScopedAllowIO allow_io; |
ASSERT_TRUE(PathService::Get(chrome::DIR_GEN_TEST_DATA, &extdir)); |
extdir = extdir.AppendASCII("ppapi/tests/extensions/popup/newlib"); |
ResultCatcher catcher; |