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; |
} |