summaryrefslogtreecommitdiffstats
path: root/chrome/browser/safe_browsing/malware_details_history.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/safe_browsing/malware_details_history.cc')
-rw-r--r--chrome/browser/safe_browsing/malware_details_history.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/safe_browsing/malware_details_history.cc b/chrome/browser/safe_browsing/malware_details_history.cc
index 28d0a378..000a59b 100644
--- a/chrome/browser/safe_browsing/malware_details_history.cc
+++ b/chrome/browser/safe_browsing/malware_details_history.cc
@@ -8,6 +8,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/safe_browsing/malware_details.h"
+#include "chrome/common/chrome_notification_types.h"
#include "content/browser/browser_thread.h"
#include "content/browser/renderer_host/render_view_host.h"
#include "content/browser/tab_contents/navigation_entry.h"
@@ -15,7 +16,6 @@
#include "content/common/notification_details.h"
#include "content/common/notification_service.h"
#include "content/common/notification_source.h"
-#include "content/common/notification_type.h"
MalwareDetailsRedirectsCollector::MalwareDetailsRedirectsCollector(
Profile* profile)
@@ -24,7 +24,7 @@ MalwareDetailsRedirectsCollector::MalwareDetailsRedirectsCollector(
has_started_(false) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
if (profile) {
- registrar_.Add(this, NotificationType::PROFILE_DESTROYED,
+ registrar_.Add(this, chrome::NOTIFICATION_PROFILE_DESTROYED,
Source<Profile>(profile));
}
}
@@ -123,11 +123,11 @@ MalwareDetailsRedirectsCollector::GetCollectedUrls() const {
}
void MalwareDetailsRedirectsCollector::Observe(
- NotificationType type,
+ int type,
const NotificationSource& source,
const NotificationDetails& details) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- DCHECK_EQ(type.value, NotificationType::PROFILE_DESTROYED);
+ DCHECK_EQ(type, chrome::NOTIFICATION_PROFILE_DESTROYED);
DVLOG(1) << "Profile gone.";
profile_ = NULL;
}