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

Unified Diff: chrome/browser/ui/cocoa/cocoa_profile_test.mm

Issue 1307093004: Remove references to IsNewAvatarMenu since the flag was removed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert FRAME_AVATAR_BUTTON changes. Created 5 years, 3 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/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()));
}

Powered by Google App Engine
This is Rietveld 408576698