Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Side by Side Diff: chrome/browser/notifications/notification_options_menu_model.cc

Issue 4635007: When an extension is uninstalled, close all desktop notifications from that e... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/notifications/notification.cc ('k') | chrome/browser/notifications/notification_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698