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

Unified Diff: ash/system/user/tray_user.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: Removed unnecessary forward declarations. Renamed |tray| to |owner|. 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/user/tray_user.cc
diff --git a/ash/system/user/tray_user.cc b/ash/system/user/tray_user.cc
index e476254333c4c6e0ae373362d5ae29924b601679..78ca43b0b2e2b8d520ff8364b73ac719e9bb76a8 100644
--- a/ash/system/user/tray_user.cc
+++ b/ash/system/user/tray_user.cc
@@ -5,6 +5,7 @@
#include "ash/system/user/tray_user.h"
#include "ash/shell.h"
+#include "ash/system/tray/system_tray.h"
msw 2012/11/16 20:09:04 nit: potentially not necessary; tray_user.h includ
bartfab (slow) 2012/11/19 17:15:31 system_tray_item.h has a forward declaration of th
oshima 2012/11/19 17:43:43 looks like it's not used in a way need definition?
bartfab (slow) 2012/11/19 18:00:31 Actually, you are right. I can remove the include
oshima 2012/11/19 21:14:17 If this will be necessary in next CL, please add i
bartfab (slow) 2012/11/19 22:32:25 Yes, of course. I addressed your comment and remov
oshima 2012/11/19 22:53:12 I understand, but we generally advise to add it wh
bartfab (slow) 2012/11/19 22:57:55 Absolutely. It was a mistake. On 2012/11/19 22:53
#include "ash/system/tray/system_tray_delegate.h"
#include "ash/system/tray/tray_constants.h"
#include "ash/system/tray/tray_item_view.h"
@@ -246,8 +247,9 @@ class UserView : public views::View,
} // namespace tray
-TrayUser::TrayUser()
- : user_(NULL),
+TrayUser::TrayUser(SystemTray* system_tray)
+ : SystemTrayItem(system_tray),
+ user_(NULL),
avatar_(NULL),
label_(NULL) {
}

Powered by Google App Engine
This is Rietveld 408576698