| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/notifications/notification_options_menu_model.h" | 5 #include "chrome/browser/notifications/notification_options_menu_model.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "chrome/browser/browser_list.h" | 10 #include "chrome/browser/browser_list.h" |
| 11 #include "chrome/browser/extensions/extensions_service.h" | 11 #include "chrome/browser/extensions/extensions_service.h" |
| 12 #include "chrome/browser/notifications/desktop_notification_service.h" | 12 #include "chrome/browser/notifications/desktop_notification_service.h" |
| 13 #include "chrome/browser/notifications/notification.h" |
| 13 #include "chrome/browser/notifications/notifications_prefs_cache.h" | 14 #include "chrome/browser/notifications/notifications_prefs_cache.h" |
| 14 #include "chrome/browser/profile.h" | 15 #include "chrome/browser/profile.h" |
| 15 #include "chrome/common/content_settings_types.h" | 16 #include "chrome/common/content_settings_types.h" |
| 16 #include "chrome/common/extensions/extension.h" | 17 #include "chrome/common/extensions/extension.h" |
| 17 #include "chrome/common/url_constants.h" | 18 #include "chrome/common/url_constants.h" |
| 18 #include "grit/generated_resources.h" | 19 #include "grit/generated_resources.h" |
| 19 | 20 |
| 20 // Menu commands | 21 // Menu commands |
| 21 const int kTogglePermissionCommand = 0; | 22 const int kTogglePermissionCommand = 0; |
| 22 const int kToggleExtensionCommand = 1; | 23 const int kToggleExtensionCommand = 1; |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 if (browser) | 143 if (browser) |
| 143 static_cast<TabContentsDelegate*>(browser)->ShowContentSettingsWindow( | 144 static_cast<TabContentsDelegate*>(browser)->ShowContentSettingsWindow( |
| 144 CONTENT_SETTINGS_TYPE_NOTIFICATIONS); | 145 CONTENT_SETTINGS_TYPE_NOTIFICATIONS); |
| 145 break; | 146 break; |
| 146 } | 147 } |
| 147 default: | 148 default: |
| 148 NOTREACHED(); | 149 NOTREACHED(); |
| 149 break; | 150 break; |
| 150 } | 151 } |
| 151 } | 152 } |
| OLD | NEW |