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

Unified Diff: chrome/browser/ui/browser_focus_uitest.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/ui/browser_focus_uitest.cc
diff --git a/chrome/browser/ui/browser_focus_uitest.cc b/chrome/browser/ui/browser_focus_uitest.cc
index 17d0c4687b66a0a7710353d74ce374b6a3a159a6..10ed8647eeaa252651b1f7ccba9b8afc01932757 100644
--- a/chrome/browser/ui/browser_focus_uitest.cc
+++ b/chrome/browser/ui/browser_focus_uitest.cc
@@ -14,6 +14,7 @@
#include "base/single_thread_task_runner.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
+#include "base/threading/thread_restrictions.h"
#include "base/threading/thread_task_runner_handle.h"
#include "build/build_config.h"
#include "chrome/browser/chrome_notification_types.h"
@@ -179,6 +180,7 @@ class BrowserFocusTest : public InProcessBrowserTest {
class TestInterstitialPage : public content::InterstitialPageDelegate {
public:
explicit TestInterstitialPage(WebContents* tab) {
+ base::ThreadRestrictions::ScopedAllowIO allow_io;
base::FilePath file_path;
bool success = PathService::Get(chrome::DIR_TEST_DATA, &file_path);
EXPECT_TRUE(success);

Powered by Google App Engine
This is Rietveld 408576698