virtual void Close(bool by_user) OVERRIDE {}
virtual void Click() OVERRIDE {}
virtual std::string id() const OVERRIDE { return id_; }
- virtual content::RenderViewHost* GetRenderViewHost() const OVERRIDE {
+ virtual content::WebContents* GetWebContents() const OVERRIDE {
return NULL;
}
}
IN_PROC_BROWSER_TEST_F(WebNotificationTrayTest, WebNotificationPopupBubble) {
- scoped_ptr<WebNotificationTray> tray(new WebNotificationTray());
+ scoped_ptr<WebNotificationTray> tray(new WebNotificationTray(NULL));
tray->message_center();
// Adding a notification should show the popup bubble.
// Flaky, see http://crbug.com/222500 .
IN_PROC_BROWSER_TEST_F(WebNotificationTrayTest,
DISABLED_ManyMessageCenterNotifications) {
- scoped_ptr<WebNotificationTray> tray(new WebNotificationTray());
+ scoped_ptr<WebNotificationTray> tray(new WebNotificationTray(NULL));
message_center::MessageCenter* message_center = tray->message_center();
// Add the max visible notifications +1, ensure the correct visible number.
}
IN_PROC_BROWSER_TEST_F(WebNotificationTrayTest, ManyPopupNotifications) {
- scoped_ptr<WebNotificationTray> tray(new WebNotificationTray());
+ scoped_ptr<WebNotificationTray> tray(new WebNotificationTray(NULL));
message_center::MessageCenter* message_center = tray->message_center();
// Add the max visible popup notifications +1, ensure the correct num visible.
IN_PROC_BROWSER_TEST_F(WebNotificationTrayTest,
ManuallyCloseMessageCenter) {
NotificationUIManager* manager = g_browser_process->notification_ui_manager();
- ASSERT_TRUE(manager->DelegatesToMessageCenter());
MessageCenterNotificationManager* mc_manager =
static_cast<MessageCenterNotificationManager*>(manager);