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

Unified Diff: ash/system/tray_caps_lock.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_caps_lock.cc
diff --git a/ash/system/tray_caps_lock.cc b/ash/system/tray_caps_lock.cc
index a570664abeecf39ca06b446172117a16d7d2c736..7e19eec761243cc986b252b8770249700022bee1 100644
--- a/ash/system/tray_caps_lock.cc
+++ b/ash/system/tray_caps_lock.cc
@@ -118,7 +118,8 @@ bool TrayCapsLock::GetInitialVisibility() {
return Shell::GetInstance()->caps_lock_delegate()->IsCapsLockEnabled();
}
-views::View* TrayCapsLock::CreateDefaultView(user::LoginStatus status) {
+views::View* TrayCapsLock::CreateDefaultView(user::LoginStatus status,
+ int bubble_width) {
if (!caps_lock_enabled_)
return NULL;
DCHECK(default_ == NULL);

Powered by Google App Engine
This is Rietveld 408576698