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

Side by Side Diff: components/autofill/content/renderer/password_autofill_agent.cc

Issue 1059393002: Remove --respect-autocomplete-off-autofill flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix last 3 tests Created 5 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/autofill/content/renderer/password_autofill_agent.h" 5 #include "components/autofill/content/renderer/password_autofill_agent.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 1246 matching lines...) Expand 10 before | Expand all | Expand 10 after
1257 blink::WebFrame* frame = user_input.document().frame(); 1257 blink::WebFrame* frame = user_input.document().frame();
1258 if (!frame) 1258 if (!frame)
1259 return false; 1259 return false;
1260 1260
1261 blink::WebView* webview = frame->view(); 1261 blink::WebView* webview = frame->view();
1262 if (!webview) 1262 if (!webview)
1263 return false; 1263 return false;
1264 1264
1265 FormData form; 1265 FormData form;
1266 FormFieldData field; 1266 FormFieldData field;
1267 FindFormAndFieldForFormControlElement( 1267 FindFormAndFieldForFormControlElement(user_input, &form, &field);
1268 user_input, &form, &field, REQUIRE_NONE);
1269 1268
1270 blink::WebInputElement selected_element = user_input; 1269 blink::WebInputElement selected_element = user_input;
1271 if (show_on_password_field && !selected_element.isPasswordField()) { 1270 if (show_on_password_field && !selected_element.isPasswordField()) {
1272 LoginToPasswordInfoMap::const_iterator iter = 1271 LoginToPasswordInfoMap::const_iterator iter =
1273 login_to_password_info_.find(user_input); 1272 login_to_password_info_.find(user_input);
1274 DCHECK(iter != login_to_password_info_.end()); 1273 DCHECK(iter != login_to_password_info_.end());
1275 selected_element = iter->second.password_field; 1274 selected_element = iter->second.password_field;
1276 } 1275 }
1277 gfx::Rect bounding_box(selected_element.boundsInViewportSpace()); 1276 gfx::Rect bounding_box(selected_element.boundsInViewportSpace());
1278 1277
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
1431 void PasswordAutofillAgent::LegacyPasswordAutofillAgent::DidStopLoading() { 1430 void PasswordAutofillAgent::LegacyPasswordAutofillAgent::DidStopLoading() {
1432 agent_->DidStopLoading(); 1431 agent_->DidStopLoading();
1433 } 1432 }
1434 1433
1435 void PasswordAutofillAgent::LegacyPasswordAutofillAgent:: 1434 void PasswordAutofillAgent::LegacyPasswordAutofillAgent::
1436 DidStartProvisionalLoad(blink::WebLocalFrame* navigated_frame) { 1435 DidStartProvisionalLoad(blink::WebLocalFrame* navigated_frame) {
1437 agent_->LegacyDidStartProvisionalLoad(navigated_frame); 1436 agent_->LegacyDidStartProvisionalLoad(navigated_frame);
1438 } 1437 }
1439 1438
1440 } // namespace autofill 1439 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698