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

Unified Diff: chrome/browser/diagnostics/recon_diagnostics.cc

Issue 2037883004: [Win] Add reporting of total number of modules loaded in browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 4 years, 4 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
« no previous file with comments | « chrome/browser/diagnostics/recon_diagnostics.h ('k') | chrome/browser/ui/chrome_pages.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/diagnostics/recon_diagnostics.cc
diff --git a/chrome/browser/diagnostics/recon_diagnostics.cc b/chrome/browser/diagnostics/recon_diagnostics.cc
index d30267c0011f765807a14d5e6df5de01094eef9e..5874609249bfbf3290788f7f64546b7367efec6f 100644
--- a/chrome/browser/diagnostics/recon_diagnostics.cc
+++ b/chrome/browser/diagnostics/recon_diagnostics.cc
@@ -52,62 +52,6 @@ const int64_t kOneMegabyte = 1024 * kOneKilobyte;
class InstallTypeTest;
InstallTypeTest* g_install_type = 0;
-// Check if any conflicting DLLs are loaded.
-class ConflictingDllsTest : public DiagnosticsTest {
- public:
- ConflictingDllsTest()
- : DiagnosticsTest(DIAGNOSTICS_CONFLICTING_DLLS_TEST) {}
-
- bool ExecuteImpl(DiagnosticsModel::Observer* observer) override {
-#if defined(OS_WIN)
- EnumerateModulesModel* model = EnumerateModulesModel::GetInstance();
- model->set_limited_mode(true);
- model->ScanNow();
- std::unique_ptr<base::ListValue> list(model->GetModuleList());
- if (!model->confirmed_bad_modules_detected() &&
- !model->suspected_bad_modules_detected()) {
- RecordSuccess("No conflicting modules found");
- return true;
- }
-
- std::string failures = "Possibly conflicting modules:";
- base::DictionaryValue* dictionary;
- for (size_t i = 0; i < list->GetSize(); ++i) {
- if (!list->GetDictionary(i, &dictionary))
- RecordFailure(DIAG_RECON_DICTIONARY_LOOKUP_FAILED,
- "Dictionary lookup failed");
- int status;
- std::string location;
- std::string name;
- if (!dictionary->GetInteger("status", &status))
- RecordFailure(DIAG_RECON_NO_STATUS_FIELD, "No 'status' field found");
- if (status < ModuleEnumerator::SUSPECTED_BAD)
- continue;
-
- if (!dictionary->GetString("location", &location)) {
- RecordFailure(DIAG_RECON_NO_LOCATION_FIELD,
- "No 'location' field found");
- return true;
- }
- if (!dictionary->GetString("name", &name)) {
- RecordFailure(DIAG_RECON_NO_NAME_FIELD, "No 'name' field found");
- return true;
- }
-
- failures += "\n" + location + name;
- }
- RecordFailure(DIAG_RECON_CONFLICTING_MODULES, failures);
- return true;
-#else
- RecordFailure(DIAG_RECON_NOT_IMPLEMENTED, "Not implemented");
- return true;
-#endif // defined(OS_WIN)
- }
-
- private:
- DISALLOW_COPY_AND_ASSIGN(ConflictingDllsTest);
-};
-
// Check that the disk space in the volume where the user data directory
// normally lives is not dangerously low.
class DiskSpaceTest : public DiagnosticsTest {
@@ -386,8 +330,6 @@ class VersionTest : public DiagnosticsTest {
} // namespace
-DiagnosticsTest* MakeConflictingDllsTest() { return new ConflictingDllsTest(); }
-
DiagnosticsTest* MakeDiskSpaceTest() { return new DiskSpaceTest(); }
DiagnosticsTest* MakeInstallTypeTest() { return new InstallTypeTest(); }
« no previous file with comments | « chrome/browser/diagnostics/recon_diagnostics.h ('k') | chrome/browser/ui/chrome_pages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698