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

Unified Diff: chrome/test/base/ui_test_utils.cc

Issue 16174003: Make all tests use GetActiveDesktop() instead of hardcoding HOST_DESKTOP_TYPE_NATIVE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/in_process_browser_test.cc ('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 be43fa14f5cd10ca166b723bf43bccd3abed3644..b353cee4e03a5debc42fac201da2bf43cbe1db33 100644
--- a/chrome/test/base/ui_test_utils.cc
+++ b/chrome/test/base/ui_test_utils.cc
@@ -158,11 +158,10 @@ Browser* WaitForBrowserNotInSet(std::set<Browser*> excluded_browsers) {
}
Browser* OpenURLOffTheRecord(Profile* profile, const GURL& url) {
- chrome::OpenURLOffTheRecord(profile, url, chrome::HOST_DESKTOP_TYPE_NATIVE);
+ chrome::HostDesktopType active_desktop = chrome::GetActiveDesktop();
+ chrome::OpenURLOffTheRecord(profile, url, active_desktop);
Browser* browser = chrome::FindTabbedBrowser(
- profile->GetOffTheRecordProfile(),
- false,
- chrome::HOST_DESKTOP_TYPE_NATIVE);
+ profile->GetOffTheRecordProfile(), false, active_desktop);
WaitForNavigations(
&browser->tab_strip_model()->GetActiveWebContents()->GetController(),
1);
« no previous file with comments | « chrome/test/base/in_process_browser_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698