Add diagnostics_writer.cc to the list of files allowed to printf.
[chromium-blink-merge.git] / components / autofill / content / renderer / renderer_save_password_progress_logger.cc
blob43ce6736ac88699001a4c3a7a221d742006061a7
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
3 // found in the LICENSE file.
5 #include "components/autofill/content/renderer/renderer_save_password_progress_logger.h"
7 #include "components/autofill/content/common/autofill_messages.h"
8 #include "ipc/ipc_sender.h"
10 namespace autofill {
12 RendererSavePasswordProgressLogger::RendererSavePasswordProgressLogger(
13 IPC::Sender* sender,
14 int routing_id)
15 : sender_(sender), routing_id_(routing_id) {
16 DCHECK(sender_);
19 RendererSavePasswordProgressLogger::~RendererSavePasswordProgressLogger() {}
21 void RendererSavePasswordProgressLogger::SendLog(const std::string& log) {
22 sender_->Send(
23 new AutofillHostMsg_RecordSavePasswordProgress(routing_id_, log));
26 } // namespace autofill