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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_navigation_observer_browsertest.cc

Issue 2724433002: Remove the retargeting notification (Closed)
Patch Set: Remove the retargeting notification Created 3 years, 10 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/safe_browsing_navigation_observer_browsertest.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_navigation_observer_browsertest.cc b/chrome/browser/safe_browsing/safe_browsing_navigation_observer_browsertest.cc
index 2e1fead87fc472b66a5086be396db64ef776a6fd..0826a4e29934b0ae5b411211b04fa82e21ed25d5 100644
--- a/chrome/browser/safe_browsing/safe_browsing_navigation_observer_browsertest.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_navigation_observer_browsertest.cc
@@ -128,7 +128,8 @@ class DownloadItemCreatedObserver : public DownloadManager::Observer {
// Test class to help create SafeBrowsingNavigationObservers for each
// WebContents before they are actually installed through AttachTabHelper.
class TestNavigationObserverManager
- : public SafeBrowsingNavigationObserverManager {
+ : public SafeBrowsingNavigationObserverManager,
+ public content::NotificationObserver {
public:
TestNavigationObserverManager() : SafeBrowsingNavigationObserverManager() {
registrar_.Add(this, chrome::NOTIFICATION_TAB_ADDED,
@@ -145,8 +146,6 @@ class TestNavigationObserverManager
observer_list_.push_back(
new SafeBrowsingNavigationObserver(dest_content, this));
DCHECK(observer_list_.back());
- } else if (type == chrome::NOTIFICATION_RETARGETING) {
- RecordRetargeting(details);
}
}
@@ -155,6 +154,8 @@ class TestNavigationObserverManager
private:
std::vector<SafeBrowsingNavigationObserver*> observer_list_;
+
+ content::NotificationRegistrar registrar_;
};
class SBNavigationObserverBrowserTest : public InProcessBrowserTest {

Powered by Google App Engine
This is Rietveld 408576698