| Index: chrome/browser/extensions/app_process_apitest.cc
|
| diff --git a/chrome/browser/extensions/app_process_apitest.cc b/chrome/browser/extensions/app_process_apitest.cc
|
| index 6abc403f83d0bef32c4fe08657c7d1015ef5c289..a08f254e12552e803b3b3e8d8fe19e2e7f717a7f 100644
|
| --- a/chrome/browser/extensions/app_process_apitest.cc
|
| +++ b/chrome/browser/extensions/app_process_apitest.cc
|
| @@ -304,11 +304,13 @@ IN_PROC_BROWSER_TEST_F(AppApiTest, MAYBE_BookmarkAppGetsNormalProcess) {
|
|
|
| // Load an app as a bookmark app.
|
| std::string error;
|
| - scoped_refptr<const Extension> extension(extensions::file_util::LoadExtension(
|
| - test_data_dir_.AppendASCII("app_process"),
|
| - extensions::Manifest::UNPACKED,
|
| - Extension::FROM_BOOKMARK,
|
| - &error));
|
| + scoped_refptr<const Extension> extension;
|
| + {
|
| + base::ThreadRestrictions::ScopedAllowIO allow_io;
|
| + extension = extensions::file_util::LoadExtension(
|
| + test_data_dir_.AppendASCII("app_process"),
|
| + extensions::Manifest::UNPACKED, Extension::FROM_BOOKMARK, &error);
|
| + }
|
| service->OnExtensionInstalled(extension.get(),
|
| syncer::StringOrdinal::CreateInitialOrdinal(),
|
| extensions::kInstallFlagInstallImmediately);
|
|
|