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

Unified Diff: ash/system/settings/tray_settings.cc

Issue 9580024: ash uber tray: Allow customizing each item depending on whether the user is logged in or not. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missing file Created 8 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
« no previous file with comments | « ash/system/settings/tray_settings.h ('k') | ash/system/tray/system_tray.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/settings/tray_settings.cc
diff --git a/ash/system/settings/tray_settings.cc b/ash/system/settings/tray_settings.cc
index 4a55c8b66c52a7d586ea8f3057de7568bad8da3a..218ab7a4db552102ff805afbd0d7ae206b11f6ee 100644
--- a/ash/system/settings/tray_settings.cc
+++ b/ash/system/settings/tray_settings.cc
@@ -73,11 +73,14 @@ TraySettings::TraySettings() {}
TraySettings::~TraySettings() {}
-views::View* TraySettings::CreateTrayView() {
+views::View* TraySettings::CreateTrayView(user::LoginStatus status) {
return NULL;
}
-views::View* TraySettings::CreateDefaultView() {
+views::View* TraySettings::CreateDefaultView(user::LoginStatus status) {
+ if (status == user::LOGGED_IN_NONE)
+ return NULL;
+
views::View* container = new views::View;
views::BoxLayout* layout =
new views::BoxLayout(views::BoxLayout::kHorizontal, 0, 0, 5);
@@ -89,7 +92,7 @@ views::View* TraySettings::CreateDefaultView() {
return container;
}
-views::View* TraySettings::CreateDetailedView() {
+views::View* TraySettings::CreateDetailedView(user::LoginStatus status) {
NOTIMPLEMENTED();
return NULL;
}
« no previous file with comments | « ash/system/settings/tray_settings.h ('k') | ash/system/tray/system_tray.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698