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

Unified Diff: chrome/browser/custom_handlers/protocol_handler_registry_unittest.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
Index: chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc
===================================================================
--- chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc (revision 91968)
+++ chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc (working copy)
@@ -12,6 +12,7 @@
#include "base/task.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/custom_handlers/protocol_handler.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/test/testing_browser_process.h"
#include "chrome/test/testing_browser_process_test.h"
#include "chrome/test/testing_pref_service.h"
@@ -67,20 +68,20 @@
: events_(0),
notification_registrar_() {
notification_registrar_.Add(this,
- NotificationType::PROTOCOL_HANDLER_REGISTRY_CHANGED,
+ chrome::NOTIFICATION_PROTOCOL_HANDLER_REGISTRY_CHANGED,
NotificationService::AllSources());
}
~NotificationCounter() {
notification_registrar_.Remove(this,
- NotificationType::PROTOCOL_HANDLER_REGISTRY_CHANGED,
+ chrome::NOTIFICATION_PROTOCOL_HANDLER_REGISTRY_CHANGED,
NotificationService::AllSources());
}
int events() { return events_; }
bool notified() { return events_ > 0; }
void Clear() { events_ = 0; }
- virtual void Observe(NotificationType type,
+ virtual void Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
++events_;
@@ -97,11 +98,11 @@
called_(false),
notification_registrar_() {
notification_registrar_.Add(this,
- NotificationType::PROTOCOL_HANDLER_REGISTRY_CHANGED,
+ chrome::NOTIFICATION_PROTOCOL_HANDLER_REGISTRY_CHANGED,
NotificationService::AllSources());
}
- virtual void Observe(NotificationType type,
+ virtual void Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
std::vector<std::string> output;
« no previous file with comments | « chrome/browser/custom_handlers/protocol_handler_registry.cc ('k') | chrome/browser/default_plugin_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698