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

Side by Side Diff: chrome/browser/chromeos/system_logs/command_line_log_source.cc

Issue 14166006: Including touchscreen events report in feedback (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/chromeos/system_logs/command_line_log_source.h" 5 #include "chrome/browser/chromeos/system_logs/command_line_log_source.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 commands.push_back(std::make_pair("xrandr", command)); 51 commands.push_back(std::make_pair("xrandr", command));
52 52
53 command = CommandLine(base::FilePath("/opt/google/touchpad/tpcontrol")); 53 command = CommandLine(base::FilePath("/opt/google/touchpad/tpcontrol"));
54 command.AppendArg("status"); 54 command.AppendArg("status");
55 commands.push_back(std::make_pair("hack-33025-touchpad", command)); 55 commands.push_back(std::make_pair("hack-33025-touchpad", command));
56 56
57 command = 57 command =
58 CommandLine(base::FilePath("/opt/google/touchpad/generate_userfeedback")); 58 CommandLine(base::FilePath("/opt/google/touchpad/generate_userfeedback"));
59 commands.push_back(std::make_pair("hack-33025-touchpad_activity", command)); 59 commands.push_back(std::make_pair("hack-33025-touchpad_activity", command));
60 60
61 command = CommandLine(
62 base::FilePath("/opt/google/touchscreen/touchscreen_feedback"));
63 commands.push_back(
64 std::make_pair("hack-33025-touchscreen_activity", command));
65
61 // Get a list of file sizes for the logged in user (excluding the names of 66 // Get a list of file sizes for the logged in user (excluding the names of
62 // the files in the Downloads directory for privay reasons). 67 // the files in the Downloads directory for privay reasons).
63 command = CommandLine(base::FilePath("/bin/sh")); 68 command = CommandLine(base::FilePath("/bin/sh"));
64 command.AppendArg("-c"); 69 command.AppendArg("-c");
65 command.AppendArg("/usr/bin/du -h /home/chronos/user |" 70 command.AppendArg("/usr/bin/du -h /home/chronos/user |"
66 " grep -v -e \\/home\\/chronos\\/user\\/Downloads\\/"); 71 " grep -v -e \\/home\\/chronos\\/user\\/Downloads\\/");
67 commands.push_back(std::make_pair("user_files", command)); 72 commands.push_back(std::make_pair("user_files", command));
68 73
69 for (size_t i = 0; i < commands.size(); ++i) { 74 for (size_t i = 0; i < commands.size(); ++i) {
70 std::string output; 75 std::string output;
(...skipping 11 matching lines...) Expand all
82 DCHECK(!callback.is_null()); 87 DCHECK(!callback.is_null());
83 88
84 SystemLogsResponse* response = new SystemLogsResponse; 89 SystemLogsResponse* response = new SystemLogsResponse;
85 BrowserThread::PostBlockingPoolTaskAndReply( 90 BrowserThread::PostBlockingPoolTaskAndReply(
86 FROM_HERE, 91 FROM_HERE,
87 base::Bind(&ExecuteCommandLines, response), 92 base::Bind(&ExecuteCommandLines, response),
88 base::Bind(callback, base::Owned(response))); 93 base::Bind(callback, base::Owned(response)));
89 } 94 }
90 95
91 } // namespace chromeos 96 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698