OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | |
sky
2016/01/08 16:51:57
or here.
Shu Chen
2016/01/09 01:46:02
Done.
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "ui/base/ime/input_method_log_collector.h" | |
6 | |
7 #include "base/logging.h" | |
8 | |
9 namespace ui { | |
10 | |
11 InputMethodLogCollector::InputMethodLogCollector() {} | |
12 | |
13 InputMethodLogCollector::~InputMethodLogCollector() {} | |
14 | |
15 void InputMethodLogCollector::AddLog(const std::string& log_string) { | |
16 logs_.push_back(log_string); | |
17 } | |
18 | |
19 void InputMethodLogCollector::OutputLogs() { | |
20 if (logs_.empty()) | |
21 return; | |
22 for (size_t i = 0; i < logs_.size(); ++i) | |
23 LOG(ERROR) << " " << logs_[i]; | |
24 logs_.clear(); | |
25 } | |
26 | |
27 void InputMethodLogCollector::ClearLogs() { | |
28 logs_.clear(); | |
29 } | |
30 | |
31 } // namespace ui | |
OLD | NEW |