| Index: chrome/browser/safe_browsing/safe_browsing_navigation_observer_manager.h
|
| diff --git a/chrome/browser/safe_browsing/safe_browsing_navigation_observer_manager.h b/chrome/browser/safe_browsing/safe_browsing_navigation_observer_manager.h
|
| index d07af76d67d6559c88a3269dea52b3cd2fdde7c5..3742cf1a6bfc0f71246bc23ba4a9e919b8b7bfa7 100644
|
| --- a/chrome/browser/safe_browsing/safe_browsing_navigation_observer_manager.h
|
| +++ b/chrome/browser/safe_browsing/safe_browsing_navigation_observer_manager.h
|
| @@ -13,8 +13,6 @@
|
| #include "third_party/protobuf/src/google/protobuf/repeated_field.h"
|
| #include "url/gurl.h"
|
|
|
| -class Profile;
|
| -
|
| namespace safe_browsing {
|
|
|
| class SafeBrowsingNavigationObserver;
|
| @@ -95,8 +93,6 @@ struct NavigationEventList {
|
| class SafeBrowsingNavigationObserverManager
|
| : public base::RefCountedThreadSafe<SafeBrowsingNavigationObserverManager> {
|
| public:
|
| - static const base::Feature kDownloadAttribution;
|
| -
|
| // For UMA histogram counting. Do NOT change order.
|
| enum AttributionResult {
|
| SUCCESS = 1, // Identified referrer chain is not empty.
|
| @@ -120,9 +116,9 @@ class SafeBrowsingNavigationObserverManager
|
| static GURL ClearEmptyRef(const GURL& url);
|
|
|
| // Checks if we should enable observing navigations for safe browsing purpose.
|
| - // Return true if the safe browsing service and the |kDownloadAttribution|
|
| - // feature are both enabled, and safe browsing service is initialized.
|
| - static bool IsEnabledAndReady(Profile* profile);
|
| + // Return true if the safe browsing safe browsing service is enabled and
|
| + // initialized.
|
| + static bool IsEnabledAndReady(content::WebContents* web_contents);
|
|
|
| SafeBrowsingNavigationObserverManager();
|
|
|
|
|