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

Unified Diff: chrome/browser/apps/app_browsertest.cc

Issue 1225093003: mac: Flush the autorelease pool after making a browser window in browser tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@browser_test_base
Patch Set: Fix grammar on some comments. Created 5 years, 5 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/apps/app_browsertest.cc
diff --git a/chrome/browser/apps/app_browsertest.cc b/chrome/browser/apps/app_browsertest.cc
index 422c547c6739d7acba4a7f688043202e7c9dc104..6bb8822d2f5796cd8769428028ff0877522e1bc3 100644
--- a/chrome/browser/apps/app_browsertest.cc
+++ b/chrome/browser/apps/app_browsertest.cc
@@ -812,10 +812,7 @@ void PlatformAppDevToolsBrowserTest::RunTestWithDevTools(
content::WebContents* web_contents = window->web_contents();
ASSERT_TRUE(web_contents);
- // Ensure no DevTools open for the AppWindow, then open one.
- ASSERT_FALSE(DevToolsAgentHost::HasFor(web_contents));
- DevToolsWindow::OpenDevToolsWindow(web_contents);
- ASSERT_TRUE(DevToolsAgentHost::HasFor(web_contents));
+ OpenDevToolsWindow(web_contents);
if (test_flags & RELAUNCH) {
// Close the AppWindow, and ensure it is gone.
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_browsertest.cc » ('j') | chrome/test/base/in_process_browser_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698