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

Unified Diff: chrome/browser/expected_install_modules_win.cc

Issue 23513049: Implement install module verification metric. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reviewer comments. Created 7 years, 3 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
Index: chrome/browser/expected_install_modules_win.cc
diff --git a/chrome/browser/expected_install_modules_win.cc b/chrome/browser/expected_install_modules_win.cc
new file mode 100644
index 0000000000000000000000000000000000000000..479f04e78380b40b9e92124dc417a5c2c6f1b4a4
--- /dev/null
+++ b/chrome/browser/expected_install_modules_win.cc
@@ -0,0 +1,33 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/expected_install_modules_win.h"
+#include "base/files/file_path.h"
+#include "base/strings/string_util.h"
+
+// DO NOT REORDER THESE ELEMENTS. Their index is used as an ID in metrics
+// reporting.
+extern const base::char16* kExpectedInstallModules[] = {
+ L"chrome.dll",
+ L"icudt.dll",
+ L"chrome_frame_helper.dll",
+ L"d3dcompiler_46.dll",
+ L"libglesv2.dll",
+ L"metro_driver.dll",
+ L"pdf.dll",
+ L"widevinecdmadapter.dll",
+ L"chrome_child.dll",
+ L"d3dcompiler_43.dll",
+ L"ffmpegsumo.dll",
+ L"libegl.dll",
+ L"libpeerconnection.dll",
+ L"npchrome_frame.dll",
+ L"ppgooglenaclpluginchrome.dll",
+ L"xinput1_3.dll",
+ NULL
+};
+
+base::string16 CanonicalizeModuleName(const base::string16& module_name) {
+ return StringToLowerASCII(base::FilePath(module_name).BaseName().value());
+}

Powered by Google App Engine
This is Rietveld 408576698