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/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 Loading... |
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 Loading... |
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 |
OLD | NEW |