| Index: chrome/browser/chromeos/system_logs/debug_daemon_log_source.cc
|
| diff --git a/chrome/browser/chromeos/system_logs/debug_daemon_log_source.cc b/chrome/browser/chromeos/system_logs/debug_daemon_log_source.cc
|
| index feb1d8fb266d67325b4f1a95652cb67b3f506117..8a8aeb502c42d7d72f387ac92d572e922b0baa61 100644
|
| --- a/chrome/browser/chromeos/system_logs/debug_daemon_log_source.cc
|
| +++ b/chrome/browser/chromeos/system_logs/debug_daemon_log_source.cc
|
| @@ -12,7 +12,6 @@
|
| #include "base/memory/weak_ptr.h"
|
| #include "base/strings/string_number_conversions.h"
|
| #include "base/strings/string_util.h"
|
| -#include "chrome/browser/chromeos/system_logs/system_logs_fetcher.h"
|
| #include "chrome/browser/profiles/profile_manager.h"
|
| #include "chrome/common/chrome_switches.h"
|
| #include "chromeos/dbus/dbus_thread_manager.h"
|
| @@ -28,9 +27,10 @@ const char kUserLogFileKeyName[] = "user_log_files";
|
|
|
| namespace chromeos {
|
|
|
| -DebugDaemonLogSource::DebugDaemonLogSource()
|
| +DebugDaemonLogSource::DebugDaemonLogSource(bool scrub)
|
| : response_(new SystemLogsResponse()),
|
| num_pending_requests_(0),
|
| + scrub_(scrub),
|
| weak_ptr_factory_(this) {}
|
|
|
| DebugDaemonLogSource::~DebugDaemonLogSource() {}
|
| @@ -57,12 +57,18 @@ void DebugDaemonLogSource::Fetch(const SysLogsSourceCallback& callback) {
|
| client->GetWiMaxStatus(base::Bind(&DebugDaemonLogSource::OnGetWiMaxStatus,
|
| weak_ptr_factory_.GetWeakPtr()));
|
| ++num_pending_requests_;
|
| - client->GetAllLogs(base::Bind(&DebugDaemonLogSource::OnGetLogs,
|
| - weak_ptr_factory_.GetWeakPtr()));
|
| - ++num_pending_requests_;
|
| client->GetUserLogFiles(base::Bind(&DebugDaemonLogSource::OnGetUserLogFiles,
|
| weak_ptr_factory_.GetWeakPtr()));
|
| ++num_pending_requests_;
|
| +
|
| + if (scrub_) {
|
| + client->GetScrubbedLogs(base::Bind(&DebugDaemonLogSource::OnGetLogs,
|
| + weak_ptr_factory_.GetWeakPtr()));
|
| + } else {
|
| + client->GetAllLogs(base::Bind(&DebugDaemonLogSource::OnGetLogs,
|
| + weak_ptr_factory_.GetWeakPtr()));
|
| + }
|
| + ++num_pending_requests_;
|
| }
|
|
|
| void DebugDaemonLogSource::OnGetRoutes(bool succeeded,
|
|
|