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

Unified Diff: chrome/browser/extensions/app_process_apitest.cc

Issue 2835233002: Fix integration tests in src/chrome and src/extensions so that we can turn on IO thread checks wi... (Closed)
Patch Set: ready for review Created 3 years, 8 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
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);
« no previous file with comments | « chrome/browser/extensions/app_background_page_apitest.cc ('k') | chrome/browser/extensions/content_verifier_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698