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

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

Issue 1728033002: components: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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_generation_agent.h" 5 #include "components/autofill/content/renderer/password_generation_agent.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "components/autofill/content/common/autofill_messages.h" 10 #include "components/autofill/content/common/autofill_messages.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 } 106 }
107 107
108 } // namespace 108 } // namespace
109 109
110 PasswordGenerationAgent::AccountCreationFormData::AccountCreationFormData( 110 PasswordGenerationAgent::AccountCreationFormData::AccountCreationFormData(
111 linked_ptr<PasswordForm> password_form, 111 linked_ptr<PasswordForm> password_form,
112 std::vector<blink::WebInputElement> passwords) 112 std::vector<blink::WebInputElement> passwords)
113 : form(password_form), 113 : form(password_form),
114 password_elements(passwords) {} 114 password_elements(passwords) {}
115 115
116 PasswordGenerationAgent::AccountCreationFormData::AccountCreationFormData(
117 const AccountCreationFormData& other) = default;
118
116 PasswordGenerationAgent::AccountCreationFormData::~AccountCreationFormData() {} 119 PasswordGenerationAgent::AccountCreationFormData::~AccountCreationFormData() {}
117 120
118 PasswordGenerationAgent::PasswordGenerationAgent( 121 PasswordGenerationAgent::PasswordGenerationAgent(
119 content::RenderFrame* render_frame, 122 content::RenderFrame* render_frame,
120 PasswordAutofillAgent* password_agent) 123 PasswordAutofillAgent* password_agent)
121 : content::RenderFrameObserver(render_frame), 124 : content::RenderFrameObserver(render_frame),
122 password_is_generated_(false), 125 password_is_generated_(false),
123 is_manually_triggered_(false), 126 is_manually_triggered_(false),
124 password_edited_(false), 127 password_edited_(false),
125 generation_popup_shown_(false), 128 generation_popup_shown_(false),
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 GetAccountCreationPasswordFields(form, &password_elements); 490 GetAccountCreationPasswordFields(form, &password_elements);
488 password_elements = FindPasswordElementsForGeneration( 491 password_elements = FindPasswordElementsForGeneration(
489 password_elements, element->nameForAutofill()); 492 password_elements, element->nameForAutofill());
490 generation_form_data_.reset(new AccountCreationFormData( 493 generation_form_data_.reset(new AccountCreationFormData(
491 make_linked_ptr(password_form.release()), password_elements)); 494 make_linked_ptr(password_form.release()), password_elements));
492 is_manually_triggered_ = true; 495 is_manually_triggered_ = true;
493 ShowGenerationPopup(); 496 ShowGenerationPopup();
494 } 497 }
495 498
496 } // namespace autofill 499 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698