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

Unified Diff: ash/system/tray_update.cc

Issue 11415014: Stop using shell::GetInstance()->system_tray() in system tray items (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
Index: ash/system/tray_update.cc
diff --git a/ash/system/tray_update.cc b/ash/system/tray_update.cc
index 2e0e97dd146424d5c3a1e0e7f5202f87930e3f98..50e37ba730b4679c6b0c4209346a0f6433d849f4 100644
--- a/ash/system/tray_update.cc
+++ b/ash/system/tray_update.cc
@@ -164,14 +164,15 @@ bool TrayUpdate::GetInitialVisibility() {
return Shell::GetInstance()->tray_delegate()->SystemShouldUpgrade();
}
-views::View* TrayUpdate::CreateDefaultView(user::LoginStatus status) {
+views::View* TrayUpdate::CreateDefaultView(user::LoginStatus status,
+ int bubble_width) {
if (!Shell::GetInstance()->tray_delegate()->SystemShouldUpgrade())
return NULL;
return new UpdateView(severity_);
}
views::View* TrayUpdate::CreateDetailedView(user::LoginStatus status) {
- return CreateDefaultView(status);
+ return CreateDefaultView(status, 0);
}
void TrayUpdate::DestroyDetailedView() {

Powered by Google App Engine
This is Rietveld 408576698