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

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 4186009: Changed new tab content for Guest Session. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/browser
Patch Set: fix the link Created 10 years, 1 month 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
« no previous file with comments | « chrome/browser/resources/shared/images/guest_icon_standalone.png ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index 2bf7e78dfdaa7124c319beffec1f39b85f4ef5fe..8675cfe74b88dd88b56cd1b924ca5400f478164d 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -598,7 +598,13 @@ bool BrowserView::IsOffTheRecord() const {
}
bool BrowserView::ShouldShowOffTheRecordAvatar() const {
- return IsOffTheRecord() && IsBrowserTypeNormal();
+ bool should_show_off_the_record_avatar =
+ IsOffTheRecord() && IsBrowserTypeNormal();
+#if defined(OS_CHROMEOS)
+ should_show_off_the_record_avatar = should_show_off_the_record_avatar &&
+ !CommandLine::ForCurrentProcess()->HasSwitch(switches::kGuestSession);
+#endif
+ return should_show_off_the_record_avatar;
}
bool BrowserView::AcceleratorPressed(const views::Accelerator& accelerator) {
« no previous file with comments | « chrome/browser/resources/shared/images/guest_icon_standalone.png ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698