| Index: chrome/browser/ui/cocoa/cocoa_profile_test.mm
|
| diff --git a/chrome/browser/ui/cocoa/cocoa_profile_test.mm b/chrome/browser/ui/cocoa/cocoa_profile_test.mm
|
| index 28853ebaacfd76aa0a876fa782ab0a55b40071a5..cc3276df98e81e025565528450f670735dc9f75a 100644
|
| --- a/chrome/browser/ui/cocoa/cocoa_profile_test.mm
|
| +++ b/chrome/browser/ui/cocoa/cocoa_profile_test.mm
|
| @@ -24,6 +24,14 @@
|
| CocoaProfileTest::CocoaProfileTest()
|
| : profile_manager_(TestingBrowserProcess::GetGlobal()),
|
| profile_(NULL),
|
| + incognito_(false),
|
| + thread_bundle_(new content::TestBrowserThreadBundle) {
|
| +}
|
| +
|
| +CocoaProfileTest::CocoaProfileTest(bool incognito)
|
| + : profile_manager_(TestingBrowserProcess::GetGlobal()),
|
| + profile_(NULL),
|
| + incognito_(incognito),
|
| thread_bundle_(new content::TestBrowserThreadBundle) {
|
| }
|
|
|
| @@ -97,6 +105,8 @@ void CocoaProfileTest::CloseBrowserWindow() {
|
| }
|
|
|
| Browser* CocoaProfileTest::CreateBrowser() {
|
| - return new Browser(Browser::CreateParams(profile(),
|
| + Profile* browser_profile = incognito_ ? profile()->GetOffTheRecordProfile() :
|
| + profile();
|
| + return new Browser(Browser::CreateParams(browser_profile,
|
| chrome::GetActiveDesktop()));
|
| }
|
|
|