Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "log_tool.h" |
| 6 | |
Ben Chan | a0011d8 | 2014-05-13 00:19:29 -0700 | [diff] [blame] | 7 | #include <vector> |
| 8 | |
Ben Chan | f6cd93a | 2012-10-14 19:37:00 -0700 | [diff] [blame] | 9 | #include <glib.h> |
| 10 | |
| 11 | #include <base/base64.h> |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 12 | #include <base/file_util.h> |
| 13 | #include <base/logging.h> |
Ben Chan | 9953a59 | 2014-02-05 23:32:00 -0800 | [diff] [blame] | 14 | #include <base/strings/string_split.h> |
| 15 | #include <base/strings/string_util.h> |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 16 | |
Darin Petkov | ce9b3a1 | 2013-01-10 16:38:54 +0100 | [diff] [blame] | 17 | #include "anonymizer_tool.h" |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 18 | #include "process_with_output.h" |
| 19 | |
| 20 | namespace debugd { |
| 21 | |
| 22 | const char *kShell = "/bin/sh"; |
Elly Fong-Jones | 215b562 | 2013-03-20 14:32:18 -0400 | [diff] [blame] | 23 | const char *kDebugfsGroup = "debugfs-access"; |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 24 | |
| 25 | using std::string; |
| 26 | using std::vector; |
| 27 | |
| 28 | typedef vector<string> Strings; |
| 29 | |
Ben Chan | f6cd93a | 2012-10-14 19:37:00 -0700 | [diff] [blame] | 30 | // Returns |value| if |value| is a valid UTF-8 string or a base64-encoded |
| 31 | // string of |value| otherwise. |
| 32 | string EnsureUTF8String(const string& value) { |
Ben Chan | c93d758 | 2014-05-21 22:53:43 -0700 | [diff] [blame] | 33 | if (base::IsStringUTF8(value)) |
Ben Chan | f6cd93a | 2012-10-14 19:37:00 -0700 | [diff] [blame] | 34 | return value; |
| 35 | |
| 36 | gchar* base64_value = g_base64_encode( |
| 37 | reinterpret_cast<const guchar*>(value.c_str()), value.length()); |
| 38 | if (base64_value) { |
| 39 | string encoded_value = "<base64>: "; |
| 40 | encoded_value += base64_value; |
| 41 | g_free(base64_value); |
| 42 | return encoded_value; |
| 43 | } |
| 44 | return "<invalid>"; |
| 45 | } |
| 46 | |
Elly Fong-Jones | d9a16cd | 2012-11-12 16:09:49 -0500 | [diff] [blame] | 47 | struct Log { |
| 48 | const char *name; |
| 49 | const char *command; |
| 50 | const char *user; |
| 51 | const char *group; |
| 52 | }; |
| 53 | |
Elly Fong-Jones | 57f018c | 2012-10-08 14:22:01 -0400 | [diff] [blame] | 54 | // TODO(ellyjones): sandbox. crosbug.com/35122 |
Elly Fong-Jones | d9a16cd | 2012-11-12 16:09:49 -0500 | [diff] [blame] | 55 | string Run(const Log& log) { |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 56 | string output; |
| 57 | ProcessWithOutput p; |
Elly Fong-Jones | d9a16cd | 2012-11-12 16:09:49 -0500 | [diff] [blame] | 58 | string tailed_cmdline = std::string(log.command) + " | tail -c 256K"; |
| 59 | if (log.user && log.group) |
| 60 | p.SandboxAs(log.user, log.group); |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 61 | if (!p.Init()) |
| 62 | return "<not available>"; |
| 63 | p.AddArg(kShell); |
| 64 | p.AddStringOption("-c", tailed_cmdline); |
| 65 | if (p.Run()) |
| 66 | return "<not available>"; |
| 67 | p.GetOutput(&output); |
| 68 | if (!output.size()) |
| 69 | return "<empty>"; |
Ben Chan | f6cd93a | 2012-10-14 19:37:00 -0700 | [diff] [blame] | 70 | return EnsureUTF8String(output); |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 71 | } |
| 72 | |
Elly Jones | 533c7c4 | 2012-08-10 15:07:05 -0400 | [diff] [blame] | 73 | static const Log common_logs[] = { |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 74 | { "CLIENT_ID", "/bin/cat '/home/chronos/Consent To Send Stats'" }, |
| 75 | { "LOGDATE", "/bin/date" }, |
| 76 | { "Xorg.0.log", "/bin/cat /var/log/Xorg.0.log" }, |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 77 | { "bios_info", "/bin/cat /var/log/bios_info.txt" }, |
Vadim Bendebury | 64aeeed | 2013-09-16 13:16:49 -0700 | [diff] [blame] | 78 | { "bios_log", |
| 79 | "/bin/cat /sys/firmware/log " |
| 80 | "/proc/device-tree/chosen/ap-console-buffer 2> /dev/null" }, |
Stefan Reinauer | 4393fa7 | 2012-10-18 11:08:09 -0700 | [diff] [blame] | 81 | { "bios_times", "/bin/cat /var/log/bios_times.txt" }, |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 82 | { "board-specific", |
| 83 | "/usr/share/userfeedback/scripts/get_board_specific_info" }, |
| 84 | { "boot_times", "/bin/cat /tmp/boot-times-sent" }, |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 85 | { "chrome_system_log", "/bin/cat /var/log/chrome/chrome" }, |
Elly Fong-Jones | 57f018c | 2012-10-08 14:22:01 -0400 | [diff] [blame] | 86 | { "console-ramoops", "/bin/cat /dev/pstore/console-ramoops" }, |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 87 | { "cpu", "/usr/bin/uname -p" }, |
| 88 | { "cpuinfo", "/bin/cat /proc/cpuinfo" }, |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 89 | { "dmesg", "/bin/dmesg" }, |
| 90 | { "ec_info", "/bin/cat /var/log/ec_info.txt" }, |
Stefan Reinauer | 4393fa7 | 2012-10-18 11:08:09 -0700 | [diff] [blame] | 91 | { "eventlog", "/bin/cat /var/log/eventlog.txt" }, |
Elly Fong-Jones | 215b562 | 2013-03-20 14:32:18 -0400 | [diff] [blame] | 92 | { |
| 93 | "exynos_gem_objects", |
Yuly Novikov | 13ece85 | 2013-07-11 17:19:10 -0400 | [diff] [blame] | 94 | "/bin/cat /sys/kernel/debug/dri/0/exynos_gem_objects 2> /dev/null", |
Elly Fong-Jones | 215b562 | 2013-03-20 14:32:18 -0400 | [diff] [blame] | 95 | SandboxedProcess::kDefaultUser, |
| 96 | kDebugfsGroup |
| 97 | }, |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 98 | { "font_info", "/usr/share/userfeedback/scripts/font_info" }, |
| 99 | { "hardware_class", "/usr/bin/crossystem hwid" }, |
| 100 | { "hostname", "/bin/hostname" }, |
| 101 | { "hw_platform", "/usr/bin/uname -i" }, |
Elly Fong-Jones | 215b562 | 2013-03-20 14:32:18 -0400 | [diff] [blame] | 102 | { |
| 103 | "i915_gem_gtt", |
Yuly Novikov | 13ece85 | 2013-07-11 17:19:10 -0400 | [diff] [blame] | 104 | "/bin/cat /sys/kernel/debug/dri/0/i915_gem_gtt 2> /dev/null", |
Elly Fong-Jones | 215b562 | 2013-03-20 14:32:18 -0400 | [diff] [blame] | 105 | SandboxedProcess::kDefaultUser, |
| 106 | kDebugfsGroup |
| 107 | }, |
| 108 | { |
| 109 | "i915_gem_objects", |
Yuly Novikov | 13ece85 | 2013-07-11 17:19:10 -0400 | [diff] [blame] | 110 | "/bin/cat /sys/kernel/debug/dri/0/i915_gem_objects 2> /dev/null", |
Elly Fong-Jones | 215b562 | 2013-03-20 14:32:18 -0400 | [diff] [blame] | 111 | SandboxedProcess::kDefaultUser, |
| 112 | kDebugfsGroup |
| 113 | }, |
| 114 | { |
| 115 | "i915_error_state", |
Yuly Novikov | 4ac12fb | 2013-07-18 20:08:44 -0400 | [diff] [blame] | 116 | "/usr/bin/xz -c /sys/kernel/debug/dri/0/i915_error_state 2> /dev/null", |
Elly Fong-Jones | 215b562 | 2013-03-20 14:32:18 -0400 | [diff] [blame] | 117 | SandboxedProcess::kDefaultUser, |
| 118 | kDebugfsGroup, |
| 119 | }, |
Daniel Erat | 982ab4b | 2014-04-09 07:32:38 -0700 | [diff] [blame] | 120 | { "ifconfig", "/bin/ifconfig -a" }, |
Elly Jones | 2bde94d | 2012-07-31 18:07:46 -0400 | [diff] [blame] | 121 | { "kernel-crashes", "/bin/cat /var/spool/crash/kernel.*.kcrash" }, |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 122 | { "lsmod", "lsmod" }, |
| 123 | { "lspci", "/usr/sbin/lspci" }, |
| 124 | { "lsusb", "lsusb" }, |
Yuly Novikov | 13ece85 | 2013-07-11 17:19:10 -0400 | [diff] [blame] | 125 | { |
| 126 | "mali_memory", |
Dominik Behr | 4765e6d | 2013-08-26 16:34:08 -0700 | [diff] [blame] | 127 | "/bin/cat /sys/class/misc/mali0/device/memory 2> /dev/null" |
Yuly Novikov | 13ece85 | 2013-07-11 17:19:10 -0400 | [diff] [blame] | 128 | }, |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 129 | { "meminfo", "cat /proc/meminfo" }, |
| 130 | { "memory_spd_info", "/bin/cat /var/log/memory_spd_info.txt" }, |
Kees Cook | a8f3e7e | 2012-11-19 14:16:01 -0800 | [diff] [blame] | 131 | { "mount-encrypted", "/bin/cat /var/log/mount-encrypted.log" }, |
Darin Petkov | 5474358 | 2012-12-10 14:18:32 +0100 | [diff] [blame] | 132 | { "net-diags.net.log", "/bin/cat /var/log/net-diags.net.log" }, |
Wade Guthrie | 67b672e | 2012-11-14 13:14:31 -0800 | [diff] [blame] | 133 | { "netlog", "/usr/share/userfeedback/scripts/getmsgs --last '2 hours'" |
| 134 | " /var/log/net.log" }, |
Vincent Palatin | c64af9d | 2013-08-05 16:34:10 -0700 | [diff] [blame] | 135 | { "platform_info", "/bin/cat /var/log/platform_info.txt" }, |
Daniel Erat | 9b58b6d | 2013-04-30 14:58:56 -0700 | [diff] [blame] | 136 | { "power_supply_info", "/usr/bin/power_supply_info" }, |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 137 | { "powerd.LATEST", "/bin/cat /var/log/power_manager/powerd.LATEST" }, |
Daniel Erat | 546c388 | 2013-11-22 12:46:01 -0800 | [diff] [blame] | 138 | { "powerd.PREVIOUS", "/bin/cat /var/log/power_manager/powerd.PREVIOUS" }, |
Daniel Erat | 93da9a1 | 2012-12-06 14:14:17 -0800 | [diff] [blame] | 139 | { "powerd.out", "/bin/cat /var/log/powerd.out" }, |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 140 | // Changed from 'ps ux' to 'ps aux' since we're running as debugd, not chronos |
| 141 | { "ps", "/bin/ps aux" }, |
Puthikorn Voravootivat | 6de5e12 | 2013-12-06 11:43:13 -0800 | [diff] [blame] | 142 | { "storage_info", "/bin/cat /var/log/storage_info.txt" }, |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 143 | { "syslog", "/usr/share/userfeedback/scripts/getmsgs --last '2 hours'" |
Elly Jones | f8a67ee | 2012-06-19 13:48:38 -0400 | [diff] [blame] | 144 | " /var/log/messages" }, |
Elly Fong-Jones | b4f49c4 | 2013-02-28 13:45:26 -0500 | [diff] [blame] | 145 | { "tlsdate", "/bin/cat /var/log/tlsdate.log" }, |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 146 | { "touchpad", "/opt/google/touchpad/tpcontrol status" }, |
Chung-yih Wang | 4b87614 | 2014-04-30 17:01:49 +0800 | [diff] [blame] | 147 | { "touchpad_activity", "/opt/google/input/cmt_feedback alt" }, |
Andrew de los Reyes | c060c34 | 2013-04-10 13:46:30 -0700 | [diff] [blame] | 148 | { "touch_fw_version", "grep -E" |
| 149 | " 'synaptics: Touchpad model|chromeos-touch-[a-z]*-update'" |
| 150 | " /var/log/messages | tail -n 20" }, |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 151 | { "ui_log", "/usr/share/userfeedback/scripts/get_log /var/log/ui/ui.LATEST" }, |
| 152 | { "uname", "/bin/uname -a" }, |
| 153 | { "update_engine.log", "cat $(ls -1tr /var/log/update_engine | tail -5 | sed" |
Elly Jones | d31aee2 | 2012-07-02 11:09:10 -0400 | [diff] [blame] | 154 | " s.^./var/log/update_engine/.)" }, |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 155 | { "verified boot", "/bin/cat /var/log/debug_vboot_noisy.log" }, |
| 156 | { "vpd_2.0", "/bin/cat /var/log/vpd_2.0.txt" }, |
Samuel Tan | 107b6c8 | 2014-07-10 15:33:44 -0700 | [diff] [blame^] | 157 | { "wifi_status", "/usr/bin/network_diag --wifi-internal --no-log" }, |
Sonny Rao | ab5f995 | 2013-07-17 14:13:53 -0700 | [diff] [blame] | 158 | { "zram compressed data size", |
| 159 | "/bin/cat /sys/block/zram0/compr_data_size 2> /dev/null" }, |
| 160 | { "zram original data size", |
| 161 | "/bin/cat /sys/block/zram0/orig_data_size 2> /dev/null" }, |
| 162 | { "zram total memory used", |
| 163 | "/bin/cat /sys/block/zram0/mem_used_total 2> /dev/null" }, |
| 164 | { "zram total reads", |
| 165 | "/bin/cat /sys/block/zram0/num_reads 2> /dev/null" }, |
| 166 | { "zram total writes", |
| 167 | "/bin/cat /sys/block/zram0/num_writes 2> /dev/null" }, |
Gaurav Shah | 6e8fd89 | 2012-10-01 11:51:08 -0700 | [diff] [blame] | 168 | |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 169 | // Stuff pulled out of the original list. These need access to the running X |
| 170 | // session, which we'd rather not give to debugd, or return info specific to |
| 171 | // the current session (in the setsid(2) sense), which is not useful for |
| 172 | // debugd |
| 173 | // { "env", "set" }, |
| 174 | // { "setxkbmap", "/usr/bin/setxkbmap -print -query" }, |
| 175 | // { "xrandr", "/usr/bin/xrandr --verbose" } |
Elly Jones | 533c7c4 | 2012-08-10 15:07:05 -0400 | [diff] [blame] | 176 | { NULL, NULL } |
| 177 | }; |
| 178 | |
| 179 | static const Log extra_logs[] = { |
Ben Chan | 36e4228 | 2014-02-12 22:32:34 -0800 | [diff] [blame] | 180 | #if USE_CELLULAR |
Elly Jones | 533c7c4 | 2012-08-10 15:07:05 -0400 | [diff] [blame] | 181 | { "mm-status", "/usr/bin/modem status" }, |
Ben Chan | 36e4228 | 2014-02-12 22:32:34 -0800 | [diff] [blame] | 182 | #endif // USE_CELLULAR |
Elly Jones | 533c7c4 | 2012-08-10 15:07:05 -0400 | [diff] [blame] | 183 | { "network-devices", "/usr/bin/connectivity show devices" }, |
| 184 | { "network-services", "/usr/bin/connectivity show services" }, |
| 185 | { NULL, NULL } |
| 186 | }; |
| 187 | |
Gaurav Shah | f6c8f2a | 2012-10-11 17:22:43 -0700 | [diff] [blame] | 188 | static const Log feedback_logs[] = { |
Ben Chan | 36e4228 | 2014-02-12 22:32:34 -0800 | [diff] [blame] | 189 | #if USE_CELLULAR |
Elly Jones | 533c7c4 | 2012-08-10 15:07:05 -0400 | [diff] [blame] | 190 | { "mm-status", "/usr/bin/modem status-feedback" }, |
Ben Chan | 36e4228 | 2014-02-12 22:32:34 -0800 | [diff] [blame] | 191 | #endif // USE_CELLULAR |
Elly Jones | 533c7c4 | 2012-08-10 15:07:05 -0400 | [diff] [blame] | 192 | { "network-devices", "/usr/bin/connectivity show-feedback devices" }, |
| 193 | { "network-services", "/usr/bin/connectivity show-feedback services" }, |
| 194 | { NULL, NULL } |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 195 | }; |
| 196 | |
Gaurav Shah | f6c8f2a | 2012-10-11 17:22:43 -0700 | [diff] [blame] | 197 | // List of log files that must directly be collected by Chrome. This is because |
| 198 | // debugd is running under a VFS namespace and does not have access to later |
| 199 | // cryptohome mounts. |
| 200 | static const Log user_logs[] = { |
Elly Fong-Jones | 6456ce5 | 2013-04-17 13:31:13 -0400 | [diff] [blame] | 201 | {"chrome_user_log", "log/chrome"}, |
| 202 | {"login-times", "login-times"}, |
| 203 | {"logout-times", "logout-times"}, |
Gaurav Shah | f6c8f2a | 2012-10-11 17:22:43 -0700 | [diff] [blame] | 204 | { NULL, NULL} |
| 205 | }; |
| 206 | |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 207 | LogTool::LogTool() { } |
| 208 | LogTool::~LogTool() { } |
| 209 | |
Elly Jones | 533c7c4 | 2012-08-10 15:07:05 -0400 | [diff] [blame] | 210 | bool GetNamedLogFrom(const string& name, const struct Log* logs, |
| 211 | string* result) { |
| 212 | for (size_t i = 0; logs[i].name; i++) { |
| 213 | if (name == logs[i].name) { |
Elly Fong-Jones | d9a16cd | 2012-11-12 16:09:49 -0500 | [diff] [blame] | 214 | *result = Run(logs[i]); |
Elly Jones | 533c7c4 | 2012-08-10 15:07:05 -0400 | [diff] [blame] | 215 | return true; |
| 216 | } |
| 217 | } |
| 218 | *result = "<invalid log name>"; |
| 219 | return false; |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 220 | } |
| 221 | |
Ben Chan | a0011d8 | 2014-05-13 00:19:29 -0700 | [diff] [blame] | 222 | string LogTool::GetLog(const string& name, DBus::Error* error) { |
Elly Jones | 533c7c4 | 2012-08-10 15:07:05 -0400 | [diff] [blame] | 223 | string result; |
| 224 | GetNamedLogFrom(name, common_logs, &result) |
| 225 | || GetNamedLogFrom(name, extra_logs, &result) |
| 226 | || GetNamedLogFrom(name, feedback_logs, &result); |
| 227 | return result; |
| 228 | } |
| 229 | |
| 230 | void GetLogsFrom(const struct Log* logs, LogTool::LogMap* map) { |
| 231 | for (size_t i = 0; logs[i].name; i++) |
Elly Fong-Jones | d9a16cd | 2012-11-12 16:09:49 -0500 | [diff] [blame] | 232 | (*map)[logs[i].name] = Run(logs[i]); |
Elly Jones | 533c7c4 | 2012-08-10 15:07:05 -0400 | [diff] [blame] | 233 | } |
| 234 | |
Ben Chan | a0011d8 | 2014-05-13 00:19:29 -0700 | [diff] [blame] | 235 | LogTool::LogMap LogTool::GetAllLogs(DBus::Error* error) { |
Elly Jones | 533c7c4 | 2012-08-10 15:07:05 -0400 | [diff] [blame] | 236 | LogMap result; |
| 237 | GetLogsFrom(common_logs, &result); |
| 238 | GetLogsFrom(extra_logs, &result); |
| 239 | return result; |
| 240 | } |
| 241 | |
Ben Chan | a0011d8 | 2014-05-13 00:19:29 -0700 | [diff] [blame] | 242 | LogTool::LogMap LogTool::GetFeedbackLogs(DBus::Error* error) { |
Elly Jones | 533c7c4 | 2012-08-10 15:07:05 -0400 | [diff] [blame] | 243 | LogMap result; |
| 244 | GetLogsFrom(common_logs, &result); |
| 245 | GetLogsFrom(feedback_logs, &result); |
Darin Petkov | ce9b3a1 | 2013-01-10 16:38:54 +0100 | [diff] [blame] | 246 | AnonymizeLogMap(&result); |
Elly Jones | 03cd6d7 | 2012-06-11 13:04:28 -0400 | [diff] [blame] | 247 | return result; |
| 248 | } |
| 249 | |
Ben Chan | a0011d8 | 2014-05-13 00:19:29 -0700 | [diff] [blame] | 250 | LogTool::LogMap LogTool::GetUserLogFiles(DBus::Error* error) { |
Gaurav Shah | f6c8f2a | 2012-10-11 17:22:43 -0700 | [diff] [blame] | 251 | LogMap result; |
| 252 | for (size_t i = 0; user_logs[i].name; ++i) |
| 253 | result[user_logs[i].name] = user_logs[i].command; |
| 254 | return result; |
| 255 | } |
| 256 | |
Darin Petkov | ce9b3a1 | 2013-01-10 16:38:54 +0100 | [diff] [blame] | 257 | void LogTool::AnonymizeLogMap(LogMap* log_map) { |
| 258 | AnonymizerTool anonymizer; |
| 259 | for (LogMap::iterator it = log_map->begin(); |
| 260 | it != log_map->end(); ++it) { |
| 261 | it->second = anonymizer.Anonymize(it->second); |
| 262 | } |
| 263 | } |
| 264 | |
Ben Chan | a0011d8 | 2014-05-13 00:19:29 -0700 | [diff] [blame] | 265 | } // namespace debugd |