OLD | NEW |
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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 return false; | 125 return false; |
126 } | 126 } |
127 | 127 |
128 return true; | 128 return true; |
129 } | 129 } |
130 | 130 |
131 bool ShouldFillOnAccountSelect() { | 131 bool ShouldFillOnAccountSelect() { |
132 std::string group_name = | 132 std::string group_name = |
133 base::FieldTrialList::FindFullName(kFillOnAccountSelectFieldTrialName); | 133 base::FieldTrialList::FindFullName(kFillOnAccountSelectFieldTrialName); |
134 | 134 |
135 if (CommandLine::ForCurrentProcess()->HasSwitch( | 135 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
136 switches::kDisableFillOnAccountSelect)) { | 136 switches::kDisableFillOnAccountSelect)) { |
137 return false; | 137 return false; |
138 } | 138 } |
139 | 139 |
140 if (CommandLine::ForCurrentProcess()->HasSwitch( | 140 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
141 switches::kEnableFillOnAccountSelect)) { | 141 switches::kEnableFillOnAccountSelect)) { |
142 return true; | 142 return true; |
143 } | 143 } |
144 | 144 |
145 return group_name == kFillOnAccountSelectFieldTrialEnabledGroup; | 145 return group_name == kFillOnAccountSelectFieldTrialEnabledGroup; |
146 } | 146 } |
147 | 147 |
148 // Helper to search the given form element for the specified input elements in | 148 // Helper to search the given form element for the specified input elements in |
149 // |data|, and add results to |result|. | 149 // |data|, and add results to |result|. |
150 bool FindFormInputElements(blink::WebFormElement* form_element, | 150 bool FindFormInputElements(blink::WebFormElement* form_element, |
(...skipping 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1322 DidStartProvisionalLoad(blink::WebLocalFrame* navigated_frame) { | 1322 DidStartProvisionalLoad(blink::WebLocalFrame* navigated_frame) { |
1323 agent_->LegacyDidStartProvisionalLoad(navigated_frame); | 1323 agent_->LegacyDidStartProvisionalLoad(navigated_frame); |
1324 } | 1324 } |
1325 | 1325 |
1326 void PasswordAutofillAgent::LegacyPasswordAutofillAgent::FrameDetached( | 1326 void PasswordAutofillAgent::LegacyPasswordAutofillAgent::FrameDetached( |
1327 blink::WebFrame* frame) { | 1327 blink::WebFrame* frame) { |
1328 agent_->FrameDetached(frame); | 1328 agent_->FrameDetached(frame); |
1329 } | 1329 } |
1330 | 1330 |
1331 } // namespace autofill | 1331 } // namespace autofill |
OLD | NEW |