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

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

Issue 818103002: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 12 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
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698