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

Unified Diff: chrome/browser/ui/cocoa/extensions/extension_popup_controller.mm

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/extensions/extension_popup_controller.mm
===================================================================
--- chrome/browser/ui/cocoa/extensions/extension_popup_controller.mm (revision 91880)
+++ chrome/browser/ui/cocoa/extensions/extension_popup_controller.mm (working copy)
@@ -38,16 +38,16 @@
explicit DevtoolsNotificationBridge(ExtensionPopupController* controller)
: controller_(controller) {}
- void Observe(NotificationType type,
+ void Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
- switch (type.value) {
- case NotificationType::EXTENSION_HOST_DID_STOP_LOADING: {
+ switch (type) {
+ case chrome::EXTENSION_HOST_DID_STOP_LOADING: {
if (Details<ExtensionHost>([controller_ extensionHost]) == details)
[controller_ showDevTools];
break;
}
- case NotificationType::DEVTOOLS_WINDOW_CLOSING: {
+ case chrome::DEVTOOLS_WINDOW_CLOSING: {
RenderViewHost* rvh = [controller_ extensionHost]->render_view_host();
if (Details<RenderViewHost>(rvh) == details)
// Allow the devtools to finish detaching before we close the popup
@@ -131,10 +131,10 @@
notificationBridge_.reset(new DevtoolsNotificationBridge(self));
registrar_.reset(new NotificationRegistrar);
registrar_->Add(notificationBridge_.get(),
- NotificationType::DEVTOOLS_WINDOW_CLOSING,
+ chrome::DEVTOOLS_WINDOW_CLOSING,
Source<Profile>(host->profile()));
registrar_->Add(notificationBridge_.get(),
- NotificationType::EXTENSION_HOST_DID_STOP_LOADING,
+ chrome::EXTENSION_HOST_DID_STOP_LOADING,
Source<Profile>(host->profile()));
}
return self;

Powered by Google App Engine
This is Rietveld 408576698