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

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

Issue 2697803002: [M57] Eliminate PasswordAutofillAgentConstructed() in mojo interface PasswordManagerDriver (Closed)
Patch Set: Created 3 years, 10 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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 568
569 PasswordAutofillAgent::PasswordAutofillAgent(content::RenderFrame* render_frame) 569 PasswordAutofillAgent::PasswordAutofillAgent(content::RenderFrame* render_frame)
570 : content::RenderFrameObserver(render_frame), 570 : content::RenderFrameObserver(render_frame),
571 logging_state_active_(false), 571 logging_state_active_(false),
572 was_username_autofilled_(false), 572 was_username_autofilled_(false),
573 was_password_autofilled_(false), 573 was_password_autofilled_(false),
574 binding_(this) { 574 binding_(this) {
575 // PasswordAutofillAgent is guaranteed to outlive |render_frame|. 575 // PasswordAutofillAgent is guaranteed to outlive |render_frame|.
576 render_frame->GetInterfaceRegistry()->AddInterface( 576 render_frame->GetInterfaceRegistry()->AddInterface(
577 base::Bind(&PasswordAutofillAgent::BindRequest, base::Unretained(this))); 577 base::Bind(&PasswordAutofillAgent::BindRequest, base::Unretained(this)));
578 GetPasswordManagerDriver()->PasswordAutofillAgentConstructed();
579 } 578 }
580 579
581 PasswordAutofillAgent::~PasswordAutofillAgent() { 580 PasswordAutofillAgent::~PasswordAutofillAgent() {
582 } 581 }
583 582
584 void PasswordAutofillAgent::BindRequest( 583 void PasswordAutofillAgent::BindRequest(
585 mojom::PasswordAutofillAgentRequest request) { 584 mojom::PasswordAutofillAgentRequest request) {
586 binding_.Bind(std::move(request)); 585 binding_.Bind(std::move(request));
587 } 586 }
588 587
(...skipping 926 matching lines...) Expand 10 before | Expand all | Expand 10 after
1515 PasswordAutofillAgent::GetPasswordManagerDriver() { 1514 PasswordAutofillAgent::GetPasswordManagerDriver() {
1516 if (!password_manager_driver_) { 1515 if (!password_manager_driver_) {
1517 render_frame()->GetRemoteInterfaces()->GetInterface( 1516 render_frame()->GetRemoteInterfaces()->GetInterface(
1518 mojo::MakeRequest(&password_manager_driver_)); 1517 mojo::MakeRequest(&password_manager_driver_));
1519 } 1518 }
1520 1519
1521 return password_manager_driver_; 1520 return password_manager_driver_;
1522 } 1521 }
1523 1522
1524 } // namespace autofill 1523 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698