diff options
author | dbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-06 03:09:12 +0000 |
---|---|---|
committer | dbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-06 03:09:12 +0000 |
commit | e4495213d466250ed455f57b97d46281408236f8 (patch) | |
tree | ca4524a707290d4f49d936811a997ecd82830bc7 /chrome/renderer | |
parent | da983ab0f33178103ea9788a34963a95ac9606e6 (diff) | |
download | chromium_src-e4495213d466250ed455f57b97d46281408236f8.zip chromium_src-e4495213d466250ed455f57b97d46281408236f8.tar.gz chromium_src-e4495213d466250ed455f57b97d46281408236f8.tar.bz2 |
[autofill] Pass along frame URL and SSL status, only allow requests for credit card info when secure.
BUG=157270,162785
R=estade@chromium.org,isherman@chromium.org,jam@chromium.org
Review URL: https://codereview.chromium.org/11369236
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171387 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/autofill/autofill_agent.cc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/chrome/renderer/autofill/autofill_agent.cc b/chrome/renderer/autofill/autofill_agent.cc index 5caa316..945a783 100644 --- a/chrome/renderer/autofill/autofill_agent.cc +++ b/chrome/renderer/autofill/autofill_agent.cc @@ -6,8 +6,8 @@ #include "base/bind.h" #include "base/message_loop.h" -#include "base/string_util.h" #include "base/string_split.h" +#include "base/string_util.h" #include "base/time.h" #include "base/utf_string_conversions.h" #include "chrome/common/autofill_messages.h" @@ -18,10 +18,11 @@ #include "chrome/renderer/autofill/form_autofill_util.h" #include "chrome/renderer/autofill/password_autofill_manager.h" #include "content/public/common/password_form.h" +#include "content/public/common/ssl_status.h" #include "content/public/renderer/render_view.h" #include "grit/chromium_strings.h" #include "grit/generated_resources.h" -#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" +#include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" @@ -31,6 +32,7 @@ #include "third_party/WebKit/Source/WebKit/chromium/public/WebNodeCollection.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebOptionElement.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" +#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" #include "ui/base/keycodes/keyboard_codes.h" #include "ui/base/l10n/l10n_util.h" @@ -233,7 +235,11 @@ void AutofillAgent::didRequestAutocomplete(WebKit::WebFrame* frame, HidePopups(); in_flight_request_form_ = form; - Send(new AutofillHostMsg_RequestAutocomplete(routing_id(), form_data)); + Send(new AutofillHostMsg_RequestAutocomplete( + routing_id(), + form_data, + frame->document().url(), + render_view()->GetSSLStatusOfFrame(frame))); } bool AutofillAgent::InputElementClicked(const WebInputElement& element, |