Index: chrome/browser/chrome_browser_main.cc |
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc |
index 856e4f2a03a70dc7099943ba9d40a1b535b11477..c64809e5946e1c541d8862f695ccb9e2df06ab3d 100644 |
--- a/chrome/browser/chrome_browser_main.cc |
+++ b/chrome/browser/chrome_browser_main.cc |
@@ -1069,10 +1069,8 @@ void ChromeBrowserMainParts::PostBrowserStart() { |
#if !defined(OS_ANDROID) |
void ChromeBrowserMainParts::RunPageCycler() { |
CommandLine* command_line = CommandLine::ForCurrentProcess(); |
- // We assume a native desktop for tests, but we will need to find a way to |
- // get the proper host desktop type once we start running these tests in ASH. |
- Browser* browser = chrome::FindBrowserWithProfile( |
- profile_, chrome::HOST_DESKTOP_TYPE_NATIVE); |
+ Browser* browser = chrome::FindBrowserWithProfile(profile_, |
+ chrome::GetActiveDesktop()); |
DCHECK(browser); |
PageCycler* page_cycler = NULL; |
base::FilePath input_file = |