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

Unified Diff: components/autofill/core/browser/test_autofill_client.h

Issue 2672623005: Record Autofill form events specially for nonsecure pages (Closed)
Patch Set: rebase Created 3 years, 10 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/autofill/core/browser/test_autofill_client.h
diff --git a/components/autofill/core/browser/test_autofill_client.h b/components/autofill/core/browser/test_autofill_client.h
index 95311d7b48b402d9abe17a931c488adc248178e7..883f9960e895b1983dcdae82242f1bb5b7b691c1 100644
--- a/components/autofill/core/browser/test_autofill_client.h
+++ b/components/autofill/core/browser/test_autofill_client.h
@@ -68,6 +68,7 @@ class TestAutofillClient : public AutofillClient {
const base::string16& profile_full_name) override;
void OnFirstUserGestureObserved() override;
bool IsContextSecure(const GURL& form_origin) override;
+ bool IsMainUrlSecure() override;
bool ShouldShowSigninPromo() override;
void StartSigninFlow() override;
void ShowHttpNotSecureExplanation() override;
@@ -80,12 +81,15 @@ class TestAutofillClient : public AutofillClient {
return rappor_service_.get();
}
+ void set_main_url_secure() { is_main_url_secure_ = true; }
+
private:
// NULL by default.
std::unique_ptr<PrefService> prefs_;
std::unique_ptr<FakeOAuth2TokenService> token_service_;
std::unique_ptr<FakeIdentityProvider> identity_provider_;
std::unique_ptr<rappor::TestRapporServiceImpl> rappor_service_;
+ bool is_main_url_secure_ = false;
DISALLOW_COPY_AND_ASSIGN(TestAutofillClient);
};

Powered by Google App Engine
This is Rietveld 408576698