| Index: chrome/browser/ui/views/message_center/web_notification_tray.cc
|
| diff --git a/chrome/browser/ui/views/message_center/web_notification_tray.cc b/chrome/browser/ui/views/message_center/web_notification_tray.cc
|
| index 77a79db0edd353d3ed4e2047de6c220d23dc79bb..db691e371d98fc84c335528c93af117114b1a7ef 100644
|
| --- a/chrome/browser/ui/views/message_center/web_notification_tray.cc
|
| +++ b/chrome/browser/ui/views/message_center/web_notification_tray.cc
|
| @@ -8,9 +8,14 @@
|
| #include "base/strings/string16.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| #include "chrome/browser/browser_process.h"
|
| +#include "chrome/browser/profiles/profile_manager.h"
|
| #include "chrome/browser/status_icons/status_icon.h"
|
| #include "chrome/browser/status_icons/status_tray.h"
|
| +#include "chrome/browser/ui/browser_finder.h"
|
| +#include "chrome/browser/ui/host_desktop.h"
|
| +#include "chrome/browser/ui/singleton_tabs.h"
|
| #include "chrome/browser/ui/views/message_center/notification_bubble_wrapper.h"
|
| +#include "chrome/common/url_constants.h"
|
| #include "content/public/browser/user_metrics.h"
|
| #include "grit/chromium_strings.h"
|
| #include "grit/theme_resources.h"
|
| @@ -30,10 +35,6 @@
|
| #include "ui/message_center/views/message_popup_collection.h"
|
| #include "ui/views/widget/widget.h"
|
|
|
| -#if defined(OS_WIN)
|
| -#include "ui/base/win/hwnd_util.h"
|
| -#endif
|
| -
|
| namespace {
|
|
|
| // Tray constants
|
| @@ -277,6 +278,13 @@ void WebNotificationTray::OnStatusIconClicked() {
|
| message_center_tray_->ToggleMessageCenterBubble();
|
| }
|
|
|
| +void WebNotificationTray::OnBalloonClicked() {
|
| + Browser* browser = chrome::FindOrCreateTabbedBrowser(
|
| + ProfileManager::GetLastUsedProfileAllowedByPolicy(),
|
| + chrome::GetActiveDesktop());
|
| + chrome::ShowSingletonTab(browser, GURL(chrome::kNotificationsHelpURL));
|
| +}
|
| +
|
| void WebNotificationTray::HideBubbleWithView(
|
| const views::TrayBubbleView* bubble_view) {
|
| if (message_center_bubble_.get() &&
|
| @@ -285,6 +293,14 @@ void WebNotificationTray::HideBubbleWithView(
|
| }
|
| }
|
|
|
| +// On Windows, the status tray icon is hard to find, so we want to display a
|
| +// special balloon on the first run of each profile.
|
| +#if !defined(OS_WIN)
|
| +
|
| +void WebNotificationTray::DisplayFirstRunBalloon() {}
|
| +
|
| +#endif
|
| +
|
| StatusIcon* WebNotificationTray::GetStatusIcon() {
|
| if (status_icon_)
|
| return status_icon_;
|
|
|