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

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

Issue 707173004: Refactor Autofill for out of process iframes (OOPIF). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mem leak Created 6 years 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/test_password_generation_agent.h" 5 #include "components/autofill/content/renderer/test_password_generation_agent.h"
6 6
7 namespace autofill { 7 namespace autofill {
8 8
9 TestPasswordGenerationAgent::TestPasswordGenerationAgent( 9 TestPasswordGenerationAgent::TestPasswordGenerationAgent(
10 content::RenderView* render_view) 10 content::RenderFrame* render_frame)
11 : PasswordGenerationAgent(render_view) { 11 : PasswordGenerationAgent(render_frame) {
12 // Always enable when testing. 12 // Always enable when testing.
13 set_enabled(true); 13 set_enabled(true);
14 } 14 }
15 15
16 TestPasswordGenerationAgent::~TestPasswordGenerationAgent() {} 16 TestPasswordGenerationAgent::~TestPasswordGenerationAgent() {}
17 17
18 bool TestPasswordGenerationAgent::OnMessageReceived( 18 bool TestPasswordGenerationAgent::OnMessageReceived(
19 const IPC::Message& message) { 19 const IPC::Message& message) {
20 return PasswordGenerationAgent::OnMessageReceived(message); 20 return PasswordGenerationAgent::OnMessageReceived(message);
21 } 21 }
22 22
23 bool TestPasswordGenerationAgent::ShouldAnalyzeDocument( 23 bool TestPasswordGenerationAgent::ShouldAnalyzeDocument() const {
24 const blink::WebDocument& document) const {
25 return true; 24 return true;
26 } 25 }
27 26
28 bool TestPasswordGenerationAgent::Send(IPC::Message* message) { 27 bool TestPasswordGenerationAgent::Send(IPC::Message* message) {
29 messages_.push_back(message); 28 messages_.push_back(message);
30 return true; 29 return true;
31 } 30 }
32 31
33 } // namespace autofill 32 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698