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

Unified Diff: chrome/browser/safe_browsing/chrome_password_protection_service.h

Issue 2905343002: Show interstitial on a password on focus ping with PHISHING verdict. (Closed)
Patch Set: nit Created 3 years, 7 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/chrome_password_protection_service.h
diff --git a/chrome/browser/safe_browsing/chrome_password_protection_service.h b/chrome/browser/safe_browsing/chrome_password_protection_service.h
index 68e25b9fb6de1ffa5fa097d51574eb10865beab2..adfd93e196e8c0dc5d2a7b9c9b29453807d2c752 100644
--- a/chrome/browser/safe_browsing/chrome_password_protection_service.h
+++ b/chrome/browser/safe_browsing/chrome_password_protection_service.h
@@ -9,10 +9,15 @@
class Profile;
+namespace content {
+class WebContents;
+}
+
namespace safe_browsing {
class SafeBrowsingService;
class SafeBrowsingNavigationObserverManager;
+class SafeBrowsingUIManager;
// ChromePasswordProtectionService extends PasswordProtectionService by adding
// access to SafeBrowsingNaivigationObserverManager and Profile.
@@ -45,6 +50,10 @@ class ChromePasswordProtectionService : public PasswordProtectionService {
// If user enabled history syncing.
bool IsHistorySyncEnabled() override;
+ void ShowPhishingInterstitial(const GURL& phishing_url,
+ const std::string& token,
+ content::WebContents* web_contents) override;
+
FRIEND_TEST_ALL_PREFIXES(
ChromePasswordProtectionServiceTest,
VerifyFinchControlForLowReputationPingSBEROnlyNoIncognito);
@@ -59,8 +68,10 @@ class ChromePasswordProtectionService : public PasswordProtectionService {
private:
friend class MockChromePasswordProtectionService;
- // Default constructor used for tests only.
- ChromePasswordProtectionService();
+ // Constructor used for tests only.
+ explicit ChromePasswordProtectionService(Profile* profile);
+
+ scoped_refptr<SafeBrowsingUIManager> ui_manager_;
// Profile associated with this instance.
Profile* profile_;
scoped_refptr<SafeBrowsingNavigationObserverManager>

Powered by Google App Engine
This is Rietveld 408576698