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

Unified Diff: ash/focus_cycler_unittest.cc

Issue 10535112: Prepare status area to support multiple trays. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 6 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 | « no previous file | ash/shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/focus_cycler_unittest.cc
diff --git a/ash/focus_cycler_unittest.cc b/ash/focus_cycler_unittest.cc
index 3dd2482c16fc1efdad54a2e5d02a4985f3f4e296..c21a1f9d78e22e19c34247b6686b3799e9dc5fd9 100644
--- a/ash/focus_cycler_unittest.cc
+++ b/ash/focus_cycler_unittest.cc
@@ -34,11 +34,10 @@ internal::StatusAreaWidgetDelegate* GetStatusAreaWidgetDelegate(
}
SystemTray* CreateSystemTray() {
- SystemTray* tray = new SystemTray;
internal::StatusAreaWidget* widget = new internal::StatusAreaWidget;
- widget->AddTray(tray);
+ widget->CreateTrayViews(NULL);
widget->Show();
- return tray;
+ return widget->system_tray();
}
} // namespace
« no previous file with comments | « no previous file | ash/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698