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

Side by Side Diff: chrome/browser/feedback/feedback_data.cc

Issue 22532012: Use scrubbed logs for sending with feedback reports. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years, 4 months 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/feedback/feedback_data.h ('k') | chrome/browser/ui/webui/chromeos/system_info_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698