Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5175)

Unified Diff: chrome/test/in_process_browser_test.cc

Issue 5610006: Converted download UI tests to Browser tests. (Closed) Base URL: http://git.chromium.org/git/chromium.git@browser_tests
Patch Set: Cleaned up code. Fixed failing tests. Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/in_process_browser_test.cc
diff --git a/chrome/test/in_process_browser_test.cc b/chrome/test/in_process_browser_test.cc
index 24f91791840f9c7f2b5dd4ba6d319b1fee6e00c7..6d6e1cadf6be9c9b79dae59410e519085f4f4eac 100644
--- a/chrome/test/in_process_browser_test.cc
+++ b/chrome/test/in_process_browser_test.cc
@@ -279,6 +279,14 @@ Browser* InProcessBrowserTest::CreateBrowser(Profile* profile) {
return browser;
}
+Browser* InProcessBrowserTest::CreateIncognitoBrowser() {
+ // Create a new browser with using the incognito profile.
+ Browser* incognito =
+ Browser::Create(browser()->profile()->GetOffTheRecordProfile());
+ InitializeBrowser(incognito);
+ return incognito;
+}
+
Browser* InProcessBrowserTest::CreateBrowserForPopup(Profile* profile) {
Browser* browser = Browser::CreateForType(Browser::TYPE_POPUP, profile);
InitializeBrowser(browser);

Powered by Google App Engine
This is Rietveld 408576698