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

Unified Diff: chromeos/dbus/debug_daemon_client.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/dbus/debug_daemon_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/debug_daemon_client.cc
diff --git a/chromeos/dbus/debug_daemon_client.cc b/chromeos/dbus/debug_daemon_client.cc
index 50d5d4b7ac96c98f10f84fac0c1022eb502deb2a..3efbe7df84468b975a8a66cbeead68fc06a1af31 100644
--- a/chromeos/dbus/debug_daemon_client.cc
+++ b/chromeos/dbus/debug_daemon_client.cc
@@ -269,6 +269,17 @@ class DebugDaemonClientImpl : public DebugDaemonClient {
callback));
}
+ virtual void GetScrubbedLogs(const GetLogsCallback& callback) OVERRIDE {
+ dbus::MethodCall method_call(debugd::kDebugdInterface,
+ debugd::kGetFeedbackLogs);
+ debugdaemon_proxy_->CallMethod(
+ &method_call,
+ dbus::ObjectProxy::TIMEOUT_USE_DEFAULT,
+ base::Bind(&DebugDaemonClientImpl::OnGetAllLogs,
+ weak_ptr_factory_.GetWeakPtr(),
+ callback));
+ }
+
virtual void GetAllLogs(const GetLogsCallback& callback)
OVERRIDE {
dbus::MethodCall method_call(debugd::kDebugdInterface,
@@ -653,12 +664,19 @@ class DebugDaemonClientStubImpl : public DebugDaemonClient {
const GetPerfDataCallback& callback) OVERRIDE {
std::vector<uint8> data;
base::MessageLoop::current()->PostTask(FROM_HERE,
- base::Bind(callback, data));
+ base::Bind(callback, data));
+ }
+ virtual void GetScrubbedLogs(const GetLogsCallback& callback) OVERRIDE {
+ std::map<std::string, std::string> sample;
+ sample["Sample Scrubbed Log"] = "Your email address is xxxxxxxx";
+ base::MessageLoop::current()->PostTask(
+ FROM_HERE, base::Bind(callback, false, sample));
}
virtual void GetAllLogs(const GetLogsCallback& callback) OVERRIDE {
- std::map<std::string, std::string> empty;
- base::MessageLoop::current()->PostTask(FROM_HERE,
- base::Bind(callback, false, empty));
+ std::map<std::string, std::string> sample;
+ sample["Sample Log"] = "Your email address is abc@abc.com";
+ base::MessageLoop::current()->PostTask(
+ FROM_HERE, base::Bind(callback, false, sample));
}
virtual void GetUserLogFiles(const GetLogsCallback& callback) OVERRIDE {
std::map<std::string, std::string> user_logs;
« no previous file with comments | « chromeos/dbus/debug_daemon_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698