Chromium Code Reviews| Index: ash/system/chromeos/network/tray_sms.cc |
| diff --git a/ash/system/chromeos/network/tray_sms.cc b/ash/system/chromeos/network/tray_sms.cc |
| index 588cd4f49be08cd26240c01bb6da761b99b37f24..5814eb8913e533f25774ecd38aba4fdf656b75ab 100644 |
| --- a/ash/system/chromeos/network/tray_sms.cc |
| +++ b/ash/system/chromeos/network/tray_sms.cc |
| @@ -302,12 +302,15 @@ views::View* TraySms::CreateDetailedView(user::LoginStatus status) { |
| HideNotificationView(); |
| if (messages_.empty()) |
| return NULL; |
| + HideNotificationView(); |
|
jennyz
2013/02/14 23:26:45
Why do you need to HideNotificationView twice?
stevenjb
2013/02/14 23:32:25
Oops, didn't see that we already did that. Fixed.
|
| detailed_ = new SmsDetailedView(this); |
| return detailed_; |
| } |
| views::View* TraySms::CreateNotificationView(user::LoginStatus status) { |
| CHECK(notification_ == NULL); |
| + if (detailed_) |
| + return NULL; |
| size_t index; |
| std::string number, text; |
| if (GetLatestMessage(&index, &number, &text)) |