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

Unified Diff: chrome/browser/service/service_process_control.cc

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
« no previous file with comments | « chrome/browser/service/service_process_control.h ('k') | chrome/browser/sessions/restore_tab_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/service/service_process_control.cc
===================================================================
--- chrome/browser/service/service_process_control.cc (revision 91968)
+++ chrome/browser/service/service_process_control.cc (working copy)
@@ -13,6 +13,7 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/upgrade_detector.h"
#include "chrome/common/chrome_switches.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/service_messages.h"
#include "chrome/common/service_process_util.h"
#include "content/browser/browser_thread.h"
@@ -204,7 +205,7 @@
Send(new ServiceMsg_UpdateAvailable);
} else {
if (registrar_.IsEmpty())
- registrar_.Add(this, NotificationType::UPGRADE_RECOMMENDED,
+ registrar_.Add(this, chrome::NOTIFICATION_UPGRADE_RECOMMENDED,
NotificationService::AllSources());
}
RunConnectDoneTasks();
@@ -224,10 +225,10 @@
}
// NotificationObserver implementation.
-void ServiceProcessControl::Observe(NotificationType type,
+void ServiceProcessControl::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
- if (type == NotificationType::UPGRADE_RECOMMENDED) {
+ if (type == chrome::NOTIFICATION_UPGRADE_RECOMMENDED) {
Send(new ServiceMsg_UpdateAvailable);
}
}
« no previous file with comments | « chrome/browser/service/service_process_control.h ('k') | chrome/browser/sessions/restore_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698