OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/feedback/feedback_data.h" | 5 #include "chrome/browser/feedback/feedback_data.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/json/json_string_value_serializer.h" | 8 #include "base/json/json_string_value_serializer.h" |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 SendReport(); | 160 SendReport(); |
161 } | 161 } |
162 } | 162 } |
163 | 163 |
164 void FeedbackData::ReadFileComplete() { | 164 void FeedbackData::ReadFileComplete() { |
165 read_attached_file_complete_ = true; | 165 read_attached_file_complete_ = true; |
166 SendReport(); | 166 SendReport(); |
167 } | 167 } |
168 | 168 |
169 void FeedbackData::StartSyslogsCollection() { | 169 void FeedbackData::StartSyslogsCollection() { |
170 chromeos::SystemLogsFetcher* fetcher = new chromeos::SystemLogsFetcher(); | 170 chromeos::ScrubbedSystemLogsFetcher* fetcher = |
| 171 new chromeos::ScrubbedSystemLogsFetcher(); |
171 fetcher->Fetch(base::Bind(&FeedbackData::CompressSyslogs, this)); | 172 fetcher->Fetch(base::Bind(&FeedbackData::CompressSyslogs, this)); |
172 } | 173 } |
173 | 174 |
174 // private | 175 // private |
175 void FeedbackData::ReadAttachedFile(const base::FilePath& from) { | 176 void FeedbackData::ReadAttachedFile(const base::FilePath& from) { |
176 if (!file_util::ReadFileToString(from, attached_filedata_.get())) { | 177 if (!file_util::ReadFileToString(from, attached_filedata_.get())) { |
177 if (attached_filedata_.get()) | 178 if (attached_filedata_.get()) |
178 attached_filedata_->clear(); | 179 attached_filedata_->clear(); |
179 } | 180 } |
180 } | 181 } |
181 #endif | 182 #endif |
OLD | NEW |