| Index: chrome/browser/safe_browsing/malware_details_history.cc
|
| ===================================================================
|
| --- chrome/browser/safe_browsing/malware_details_history.cc (revision 91968)
|
| +++ chrome/browser/safe_browsing/malware_details_history.cc (working copy)
|
| @@ -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 @@
|
| 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 @@
|
| }
|
|
|
| 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;
|
| }
|
|
|