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

Unified Diff: ash/common/system/user/tray_user.h

Issue 2510603003: Add ink drop ripple to status tray (Closed)
Patch Set: Created 4 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/common/system/user/tray_user.h
diff --git a/ash/common/system/user/tray_user.h b/ash/common/system/user/tray_user.h
index 1373db336a16730d7633c08e3b7465b4378e9dbd..5ab80363b216e24aa69fd58c9ef1502f68c6f6e4 100644
--- a/ash/common/system/user/tray_user.h
+++ b/ash/common/system/user/tray_user.h
@@ -60,6 +60,8 @@ class ASH_EXPORT TrayUser : public SystemTrayItem, public UserObserver {
// Use for access inside of tests.
tray::UserView* user_view_for_test() const { return user_; }
+ bool is_avatar_visible() const { return avatar_ != nullptr; }
+
private:
// Overridden from SystemTrayItem.
views::View* CreateTrayView(LoginStatus status) override;

Powered by Google App Engine
This is Rietveld 408576698