summaryrefslogtreecommitdiffstats
path: root/chrome/browser/metrics_log.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/metrics_log.cc')
-rw-r--r--chrome/browser/metrics_log.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/chrome/browser/metrics_log.cc b/chrome/browser/metrics_log.cc
index f366412..dc3ab86 100644
--- a/chrome/browser/metrics_log.cc
+++ b/chrome/browser/metrics_log.cc
@@ -457,11 +457,9 @@ void MetricsLog::WritePluginList(
// Plugin name and filename are hashed for the privacy of those
// testing unreleased new extensions.
- WriteAttribute("name", CreateBase64Hash(WideToUTF8((*iter).name)));
- std::wstring filename = (*iter).file.BaseName().ToWStringHack();
- WriteAttribute("filename", CreateBase64Hash(WideToUTF8(filename)));
-
- WriteAttribute("version", WideToUTF8((*iter).version));
+ WriteAttribute("name", CreateBase64Hash(WideToUTF8(iter->name)));
+ WriteAttribute("filename", CreateBase64Hash(iter->filename));
+ WriteAttribute("version", WideToUTF8(iter->version));
}
}