OLD | NEW |
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/feedback/feedback_data.h" | 5 #include "components/feedback/feedback_data.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/file_util.h" | 8 #include "base/files/file_util.h" |
9 #include "base/json/json_string_value_serializer.h" | 9 #include "base/json/json_string_value_serializer.h" |
10 #include "base/memory/ref_counted_memory.h" | 10 #include "base/memory/ref_counted_memory.h" |
11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "components/feedback/feedback_util.h" | 14 #include "components/feedback/feedback_util.h" |
15 #include "components/feedback/tracing_manager.h" | 15 #include "components/feedback/tracing_manager.h" |
16 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
17 | 17 |
18 using content::BrowserThread; | 18 using content::BrowserThread; |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 138 |
139 void FeedbackData::SendReport() { | 139 void FeedbackData::SendReport() { |
140 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 140 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
141 if (IsDataComplete() && !report_sent_) { | 141 if (IsDataComplete() && !report_sent_) { |
142 report_sent_ = true; | 142 report_sent_ = true; |
143 send_report_.Run(this); | 143 send_report_.Run(this); |
144 } | 144 } |
145 } | 145 } |
146 | 146 |
147 } // namespace feedback | 147 } // namespace feedback |
OLD | NEW |