Index: chrome/browser/services/gcm/push_messaging_service_impl.cc |
diff --git a/chrome/browser/services/gcm/push_messaging_service_impl.cc b/chrome/browser/services/gcm/push_messaging_service_impl.cc |
index 49b36d0d6ccda564f872888fecc1f16b29b6d8a4..b0cc76d2dfc9e7047f48987da0260ccbc6276968 100644 |
--- a/chrome/browser/services/gcm/push_messaging_service_impl.cc |
+++ b/chrome/browser/services/gcm/push_messaging_service_impl.cc |
@@ -606,8 +606,8 @@ void PushMessagingServiceImpl::DidRequestPermission( |
const PushMessagingApplicationId& application_id, |
const std::string& sender_id, |
const content::PushMessagingService::RegisterCallback& register_callback, |
- bool allow) { |
- if (!allow) { |
+ ContentSetting content_setting) { |
+ if (content_setting != CONTENT_SETTING_ALLOW) { |
RegisterEnd(register_callback, |
std::string(), |
content::PUSH_REGISTRATION_STATUS_PERMISSION_DENIED); |