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( |