Index: ui/message_center/popup_timer.cc |
diff --git a/ui/message_center/popup_timer.cc b/ui/message_center/popup_timer.cc |
index f2f9c5e015bbde89e53dbb257cd6a1f65028a7a8..dc27866b60b0d3699bfb9b600b4a3467ab8631a3 100644 |
--- a/ui/message_center/popup_timer.cc |
+++ b/ui/message_center/popup_timer.cc |
@@ -16,10 +16,10 @@ namespace message_center { |
namespace { |
base::TimeDelta GetTimeoutForNotification(Notification* notification) { |
- if (notification->priority() > message_center::DEFAULT_PRIORITY) |
+ if (notification->priority() > DEFAULT_PRIORITY) |
return base::TimeDelta::FromSeconds(kAutocloseHighPriorityDelaySeconds); |
- if (notification->is_web_notification()) |
- return base::TimeDelta::FromSeconds(kAutocloseWebNotificationDelaySeconds); |
+ if (notification->notifier_id().type == NotifierId::WEB_PAGE) |
+ return base::TimeDelta::FromSeconds(kAutocloseWebPageDelaySeconds); |
return base::TimeDelta::FromSeconds(kAutocloseDefaultDelaySeconds); |
} |