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); |