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

Unified Diff: chrome/browser/safe_browsing/binary_integrity_analyzer_win.cc

Issue 470213002: Moving all the incident reporting stuff to a common folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@binsign
Patch Set: Created 6 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
Index: chrome/browser/safe_browsing/binary_integrity_analyzer_win.cc
diff --git a/chrome/browser/safe_browsing/binary_integrity_analyzer_win.cc b/chrome/browser/safe_browsing/binary_integrity_analyzer_win.cc
deleted file mode 100644
index 0c5f077babf4a87065c1c33004e9a5f823fdeb7c..0000000000000000000000000000000000000000
--- a/chrome/browser/safe_browsing/binary_integrity_analyzer_win.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2014 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/safe_browsing/binary_integrity_analyzer.h"
-
-#include "base/files/file_path.h"
-#include "base/logging.h"
-#include "base/path_service.h"
-#include "version.h" // NOLINT
-
-namespace safe_browsing {
-
-std::vector<base::FilePath> GetCriticalBinariesPath() {
- static const base::FilePath::CharType* const kUnversionedFiles[] = {
- FILE_PATH_LITERAL("chrome.exe"),
- };
- static const base::FilePath::CharType* const kVersionedFiles[] = {
- FILE_PATH_LITERAL("chrome.dll"),
- FILE_PATH_LITERAL("chrome_child.dll"),
- FILE_PATH_LITERAL("chrome_elf.dll"),
- };
-
- // Find where chrome.exe is installed.
- base::FilePath chrome_exe_dir;
- if (!PathService::Get(base::DIR_EXE, &chrome_exe_dir))
- NOTREACHED();
-
- std::vector<base::FilePath> critical_binaries;
- critical_binaries.reserve(arraysize(kUnversionedFiles) +
- arraysize(kVersionedFiles));
-
- for (size_t i = 0; i < arraysize(kUnversionedFiles); ++i) {
- critical_binaries.push_back(chrome_exe_dir.Append(kUnversionedFiles[i]));
- }
-
- base::FilePath version_dir(
- chrome_exe_dir.AppendASCII(CHROME_VERSION_STRING));
- for (size_t i = 0; i < arraysize(kVersionedFiles); ++i) {
- critical_binaries.push_back(version_dir.Append(kVersionedFiles[i]));
- }
-
- return critical_binaries;
-}
-
-} // namespace safe_browsing

Powered by Google App Engine
This is Rietveld 408576698