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

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

Issue 2821163002: Clean up DownloadAttribution Finch experiments (Closed)
Patch Set: nits Created 3 years, 8 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.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_navigation_observer.cc b/chrome/browser/safe_browsing/safe_browsing_navigation_observer.cc
index dc296f1574d22d4afec82ab106e0d626b23654a4..eee146552769e95511cd86e385e5bd592ae5d9fa 100644
--- a/chrome/browser/safe_browsing/safe_browsing_navigation_observer.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_navigation_observer.cc
@@ -7,7 +7,6 @@
#include "base/memory/ptr_util.h"
#include "base/time/time.h"
#include "chrome/browser/browser_process.h"
-#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/safe_browsing/safe_browsing_navigation_observer_manager.h"
#include "chrome/browser/safe_browsing/safe_browsing_service.h"
#include "chrome/browser/sessions/session_tab_helper.h"
@@ -76,7 +75,7 @@ void SafeBrowsingNavigationObserver::MaybeCreateForWebContents(
return;
if (safe_browsing::SafeBrowsingNavigationObserverManager::IsEnabledAndReady(
- Profile::FromBrowserContext(web_contents->GetBrowserContext()))) {
+ web_contents)) {
web_contents->SetUserData(
kWebContentsUserDataKey,
new SafeBrowsingNavigationObserver(

Powered by Google App Engine
This is Rietveld 408576698