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

Unified Diff: components/safe_browsing/password_protection/password_protection_service.h

Issue 2949243004: Distinguish G Suite accounts from regular gmail/googlemail accounts (Closed)
Patch Set: nits Created 3 years, 6 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: components/safe_browsing/password_protection/password_protection_service.h
diff --git a/components/safe_browsing/password_protection/password_protection_service.h b/components/safe_browsing/password_protection/password_protection_service.h
index 10036f455c30b8d609be1117c0e9d5c7f3a9edf7..46d086d2f11ef7bf6b405e8b93ab272ac7adc67b 100644
--- a/components/safe_browsing/password_protection/password_protection_service.h
+++ b/components/safe_browsing/password_protection/password_protection_service.h
@@ -50,6 +50,9 @@ extern const char kPasswordEntryRequestOutcomeHistogramName[];
class PasswordProtectionService : public history::HistoryServiceObserver {
public:
using TriggerType = LoginReputationClientRequest::TriggerType;
+ using SyncAccountType =
+ LoginReputationClientRequest::PasswordReuseEvent::SyncAccountType;
+
// The outcome of the request. These values are used for UMA.
// DO NOT CHANGE THE ORDERING OF THESE VALUES.
enum RequestOutcome {
@@ -192,6 +195,10 @@ class PasswordProtectionService : public history::HistoryServiceObserver {
const std::string& token,
content::WebContents* web_contents) = 0;
+ // Gets the type of sync account associated with current profile or
+ // |NOT_SIGNED_IN|.
+ virtual SyncAccountType GetSyncAccountType() = 0;
+
void CheckCsdWhitelistOnIOThread(const GURL& url, bool* check_result);
HostContentSettingsMap* content_settings() const { return content_settings_; }

Powered by Google App Engine
This is Rietveld 408576698