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

Unified Diff: ash/system/tray/system_tray_unittest.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: Fix single-letter typo :(. 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
« no previous file with comments | « ash/system/tray/system_tray_item.cc ('k') | ash/system/tray/tray_details_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/system_tray_unittest.cc
diff --git a/ash/system/tray/system_tray_unittest.cc b/ash/system/tray/system_tray_unittest.cc
index 54f34b8ac73f9d9788e3badb2e87fb1d5323eeb0..3a6c377c06720a2943a6103725b16f88845f39d6 100644
--- a/ash/system/tray/system_tray_unittest.cc
+++ b/ash/system/tray/system_tray_unittest.cc
@@ -29,7 +29,7 @@ SystemTray* GetSystemTray() {
// Trivial item implementation that tracks its views for testing.
class TestItem : public SystemTrayItem {
public:
- TestItem() : tray_view_(NULL) {}
+ TestItem() : SystemTrayItem(GetSystemTray()), tray_view_(NULL) {}
virtual views::View* CreateTrayView(user::LoginStatus status) {
tray_view_ = new views::View;
« no previous file with comments | « ash/system/tray/system_tray_item.cc ('k') | ash/system/tray/tray_details_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698