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

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: Removed WaitForWindowClosed(). Created 9 years, 12 months 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 5815fad3c828583510f437b25e3ea8086f1b9f93..ff428c988c6a7fbae64d000131457f61efb71237 100644
--- a/chrome/test/in_process_browser_test.cc
+++ b/chrome/test/in_process_browser_test.cc
@@ -274,6 +274,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