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

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

Issue 336763002: Password internals page: notify renderer about logging state on client construction (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add a ping message renderer->browser for logging activity update Created 6 years, 6 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 | Annotate | Revision Log
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/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 226
227 PasswordAutofillAgent::PasswordAutofillAgent(content::RenderView* render_view) 227 PasswordAutofillAgent::PasswordAutofillAgent(content::RenderView* render_view)
228 : content::RenderViewObserver(render_view), 228 : content::RenderViewObserver(render_view),
229 usernames_usage_(NOTHING_TO_AUTOFILL), 229 usernames_usage_(NOTHING_TO_AUTOFILL),
230 web_view_(render_view->GetWebView()), 230 web_view_(render_view->GetWebView()),
231 logging_state_active_(false), 231 logging_state_active_(false),
232 was_username_autofilled_(false), 232 was_username_autofilled_(false),
233 was_password_autofilled_(false), 233 was_password_autofilled_(false),
234 username_selection_start_(0), 234 username_selection_start_(0),
235 weak_ptr_factory_(this) { 235 weak_ptr_factory_(this) {
236 Send(new AutofillHostMsg_UpdateLoggingState(routing_id()));
236 } 237 }
237 238
238 PasswordAutofillAgent::~PasswordAutofillAgent() { 239 PasswordAutofillAgent::~PasswordAutofillAgent() {
239 } 240 }
240 241
241 PasswordAutofillAgent::PasswordValueGatekeeper::PasswordValueGatekeeper() 242 PasswordAutofillAgent::PasswordValueGatekeeper::PasswordValueGatekeeper()
242 : was_user_gesture_seen_(false) { 243 : was_user_gesture_seen_(false) {
243 } 244 }
244 245
245 PasswordAutofillAgent::PasswordValueGatekeeper::~PasswordValueGatekeeper() { 246 PasswordAutofillAgent::PasswordValueGatekeeper::~PasswordValueGatekeeper() {
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
1066 username->setSelectionRange(username_selection_start_, 1067 username->setSelectionRange(username_selection_start_,
1067 username->value().length()); 1068 username->value().length());
1068 } 1069 }
1069 if (!password->suggestedValue().isEmpty()) { 1070 if (!password->suggestedValue().isEmpty()) {
1070 password->setSuggestedValue(blink::WebString()); 1071 password->setSuggestedValue(blink::WebString());
1071 password->setAutofilled(was_password_autofilled_); 1072 password->setAutofilled(was_password_autofilled_);
1072 } 1073 }
1073 } 1074 }
1074 1075
1075 } // namespace autofill 1076 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698