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

Unified Diff: chrome/browser/ui/toolbar/wrench_menu_model.cc

Issue 164333007: Switch guest profile from forced-incognito to UI mods like ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed typo in function call Created 6 years, 10 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/toolbar/wrench_menu_model.cc
diff --git a/chrome/browser/ui/toolbar/wrench_menu_model.cc b/chrome/browser/ui/toolbar/wrench_menu_model.cc
index 937c55018db7c4b9278bfcc2717a70e26351fda2..bb1912a11378c23ab5dd3e0b5ec5ce74992c366a 100644
--- a/chrome/browser/ui/toolbar/wrench_menu_model.cc
+++ b/chrome/browser/ui/toolbar/wrench_menu_model.cc
@@ -480,12 +480,8 @@ bool WrenchMenuModel::ShouldShowNewIncognitoWindowMenuItem() {
}
#endif
-#if defined(OS_CHROMEOS)
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- chromeos::switches::kGuestSession)) {
+ if (browser_->profile()->IsGuestSession())
msw 2014/02/15 00:30:52 nit: just return !browser_->profile()->IsGuestSess
bcwhite 2014/02/18 15:19:36 Done.
return false;
- }
-#endif
return true;
}

Powered by Google App Engine
This is Rietveld 408576698