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

Unified Diff: chrome/test/base/ui_test_utils.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: Comments from jhawkins, round two. 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
« no previous file with comments | « chrome/test/base/ui_test_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/ui_test_utils.cc
diff --git a/chrome/test/base/ui_test_utils.cc b/chrome/test/base/ui_test_utils.cc
index 552a1183a2565387316fb14d640ab4bdc88399a4..4b4d488c225abb0efacb883c2b23017e5c734d6c 100644
--- a/chrome/test/base/ui_test_utils.cc
+++ b/chrome/test/base/ui_test_utils.cc
@@ -146,17 +146,6 @@ bool GetCurrentTabTitle(const Browser* browser, base::string16* title) {
return true;
}
-Browser* OpenURLOffTheRecord(Profile* profile, const GURL& url) {
- chrome::HostDesktopType active_desktop = chrome::GetActiveDesktop();
- chrome::OpenURLOffTheRecord(profile, url, active_desktop);
- Browser* browser = chrome::FindTabbedBrowser(
- profile->GetOffTheRecordProfile(), false, active_desktop);
- content::TestNavigationObserver observer(
- browser->tab_strip_model()->GetActiveWebContents());
- observer.Wait();
- return browser;
-}
-
void NavigateToURL(chrome::NavigateParams* params) {
chrome::Navigate(params);
content::WaitForLoadStop(params->target_contents);
« no previous file with comments | « chrome/test/base/ui_test_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698