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

Unified Diff: chrome/browser/themes/theme_service_browsertest.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/themes/theme_service_browsertest.cc
diff --git a/chrome/browser/themes/theme_service_browsertest.cc b/chrome/browser/themes/theme_service_browsertest.cc
index 182557bc069c0d1baf7969e07a950b94fa43f029..7ed174151324f3fc0573648142d81a76b9607ee3 100644
--- a/chrome/browser/themes/theme_service_browsertest.cc
+++ b/chrome/browser/themes/theme_service_browsertest.cc
@@ -6,6 +6,7 @@
#include "base/macros.h"
#include "base/threading/sequenced_worker_pool.h"
+#include "base/threading/thread_restrictions.h"
#include "chrome/browser/extensions/component_loader.h"
#include "chrome/browser/extensions/extension_browsertest.h"
#include "chrome/browser/profiles/profile.h"
@@ -68,6 +69,7 @@ IN_PROC_BROWSER_TEST_F(ThemeServiceBrowserTest, PRE_ThemeDataPackInvalid) {
// Add a vestigial .pak file that should be removed when the new one is
// created.
// TODO(estade): remove when vestigial .pak file deletion is removed.
+ base::ThreadRestrictions::ScopedAllowIO allow_io;
EXPECT_EQ(
1, base::WriteFile(profile->GetPrefs()
->GetFilePath(prefs::kCurrentThemePackFilename)
@@ -99,6 +101,7 @@ IN_PROC_BROWSER_TEST_F(ThemeServiceBrowserTest, ThemeDataPackInvalid) {
->GetPrefs()
->GetFilePath(prefs::kCurrentThemePackFilename)
.AppendASCII("Cached Theme Material Design.pak");
+ base::ThreadRestrictions::ScopedAllowIO allow_io;
EXPECT_FALSE(base::PathExists(old_path)) << "File not deleted: "
<< old_path.value();
}

Powered by Google App Engine
This is Rietveld 408576698