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

Unified Diff: chrome/browser/safe_browsing/client_side_detection_host.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/safe_browsing/client_side_detection_host.cc
===================================================================
--- chrome/browser/safe_browsing/client_side_detection_host.cc (revision 91968)
+++ chrome/browser/safe_browsing/client_side_detection_host.cc (working copy)
@@ -27,8 +27,8 @@
#include "content/browser/renderer_host/resource_request_details.h"
#include "content/browser/tab_contents/navigation_details.h"
#include "content/browser/tab_contents/tab_contents.h"
+#include "content/common/content_notification_types.h"
#include "content/common/notification_service.h"
-#include "content/common/notification_type.h"
#include "content/common/view_messages.h"
#include "googleurl/src/gurl.h"
@@ -275,7 +275,7 @@
DCHECK(tab);
// Note: csd_service_ and sb_service_ might be NULL.
sb_service_ = g_browser_process->safe_browsing_service();
- registrar_.Add(this, NotificationType::RESOURCE_RESPONSE_STARTED,
+ registrar_.Add(this, content::NOTIFICATION_RESOURCE_RESPONSE_STARTED,
Source<RenderViewHostDelegate>(tab));
}
@@ -423,11 +423,11 @@
&ClientSideDetectionHost::MaybeShowPhishingWarning));
}
-void ClientSideDetectionHost::Observe(NotificationType type,
+void ClientSideDetectionHost::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- DCHECK_EQ(type.value, NotificationType::RESOURCE_RESPONSE_STARTED);
+ DCHECK_EQ(type, content::NOTIFICATION_RESOURCE_RESPONSE_STARTED);
const ResourceRequestDetails* req = Details<ResourceRequestDetails>(
details).ptr();
if (req && browse_info_.get()) {

Powered by Google App Engine
This is Rietveld 408576698