Index: chrome/browser/chrome_browser_main.cc |
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc |
index bd6cf1f84abc0f098a8894f8a1c1af14f002f441..6c30a1fe68261f5ecd74dcd898630203d065cfe1 100644 |
--- a/chrome/browser/chrome_browser_main.cc |
+++ b/chrome/browser/chrome_browser_main.cc |
@@ -928,7 +928,10 @@ void ChromeBrowserMainParts::PostBrowserStart() { |
void ChromeBrowserMainParts::RunPageCycler() { |
CommandLine* command_line = CommandLine::ForCurrentProcess(); |
- Browser* browser = browser::FindBrowserWithProfile(profile_); |
+ // 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 = browser::FindBrowserWithProfile( |
+ profile_, chrome::HOST_DESKTOP_TYPE_NATIVE); |
DCHECK(browser); |
PageCycler* page_cycler = NULL; |
FilePath input_file = |