Index: chrome/browser/ui/browser_navigator_browsertest.cc |
diff --git a/chrome/browser/ui/browser_navigator_browsertest.cc b/chrome/browser/ui/browser_navigator_browsertest.cc |
index 3a3eddbf40436b414287cdda866027430f1ac3f1..8f796c7908bd8da4eee5b75d0a3d918900d6f756 100644 |
--- a/chrome/browser/ui/browser_navigator_browsertest.cc |
+++ b/chrome/browser/ui/browser_navigator_browsertest.cc |
@@ -196,6 +196,12 @@ void BrowserNavigatorTest::RunDoNothingIfIncognitoIsForcedTest( |
browser->tab_strip_model()->GetActiveWebContents()->GetURL()); |
} |
+void BrowserNavigatorTest::SetUpCommandLine(base::CommandLine* command_line) { |
+ // Disable settings-in-a-window so that we can use the settings page and |
+ // sub-pages to test browser navigation. |
+ command_line->AppendSwitch(::switches::kDisableSettingsWindow); |
+} |
+ |
void BrowserNavigatorTest::Observe( |
int type, |
const content::NotificationSource& source, |