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 251181bccd2e4a8f7e738c30bc87d32eb7196130..a9477d5c92dd8aef5b690c542f3aab9528bf746e 100644 |
--- a/components/autofill/core/browser/test_autofill_client.h |
+++ b/components/autofill/core/browser/test_autofill_client.h |
@@ -56,6 +56,13 @@ class TestAutofillClient : public AutofillClient { |
const base::string16& profile_full_name) override; |
void OnFirstUserGestureObserved() override; |
void LinkClicked(const GURL& url, WindowOpenDisposition disposition) override; |
+ bool IsContextSecure(const GURL& form_origin) override { |
+ return is_context_secure_; |
+ }; |
+ |
+ void set_is_context_secure(bool is_context_secure) { |
+ is_context_secure_ = is_context_secure; |
+ }; |
void SetPrefs(scoped_ptr<PrefService> prefs) { prefs_ = prefs.Pass(); } |
@@ -70,6 +77,8 @@ class TestAutofillClient : public AutofillClient { |
scoped_ptr<FakeIdentityProvider> identity_provider_; |
scoped_ptr<rappor::TestRapporService> rappor_service_; |
+ bool is_context_secure_; |
+ |
DISALLOW_COPY_AND_ASSIGN(TestAutofillClient); |
}; |