Home | History | Annotate | Download | only in download

Lines Matching refs:incognito

897 // Test that when downloading an item in Incognito mode, we don't crash when
898 // closing the last Incognito window (http://crbug.com/13983).
900 // Incognito window.
904 // Open an Incognito window.
905 Browser* incognito = CreateIncognitoBrowser(); // Waits.
906 ASSERT_TRUE(incognito);
910 // Download a file in the Incognito window and wait.
911 CreateAndSetDownloadsDirectory(incognito);
914 // Since |incognito| is a separate browser, we have to set it up explicitly.
915 incognito->profile()->GetPrefs()->SetBoolean(prefs::kPromptForDownload,
917 DownloadAndWait(incognito, url, EXPECT_NO_SELECT_DIALOG);
922 // Verify that the download shelf is showing for the Incognito window.
923 bool is_shelf_visible = IsDownloadUIVisible(incognito);
926 // Close the Incognito window and don't crash.
927 incognito->CloseWindow();
933 Source<Browser>(incognito));