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

Side by Side Diff: chrome/browser/safe_browsing/incident_reporting/binary_integrity_analyzer_win.cc

Issue 1405633002: Cleanup chrome/version.h handling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Building Chrome is hard Created 5 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/safe_browsing/incident_reporting/binary_integrity_analy zer.h" 5 #include "chrome/browser/safe_browsing/incident_reporting/binary_integrity_analy zer.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "version.h" // NOLINT 10 #include "chrome/common/chrome_version.h"
11 11
12 namespace safe_browsing { 12 namespace safe_browsing {
13 13
14 std::vector<base::FilePath> GetCriticalBinariesPath() { 14 std::vector<base::FilePath> GetCriticalBinariesPath() {
15 static const base::FilePath::CharType* const kUnversionedFiles[] = { 15 static const base::FilePath::CharType* const kUnversionedFiles[] = {
16 FILE_PATH_LITERAL("chrome.exe"), 16 FILE_PATH_LITERAL("chrome.exe"),
17 }; 17 };
18 static const base::FilePath::CharType* const kVersionedFiles[] = { 18 static const base::FilePath::CharType* const kVersionedFiles[] = {
19 FILE_PATH_LITERAL("chrome.dll"), 19 FILE_PATH_LITERAL("chrome.dll"),
20 FILE_PATH_LITERAL("chrome_child.dll"), 20 FILE_PATH_LITERAL("chrome_child.dll"),
(...skipping 16 matching lines...) Expand all
37 base::FilePath version_dir( 37 base::FilePath version_dir(
38 chrome_exe_dir.AppendASCII(CHROME_VERSION_STRING)); 38 chrome_exe_dir.AppendASCII(CHROME_VERSION_STRING));
39 for (size_t i = 0; i < arraysize(kVersionedFiles); ++i) { 39 for (size_t i = 0; i < arraysize(kVersionedFiles); ++i) {
40 critical_binaries.push_back(version_dir.Append(kVersionedFiles[i])); 40 critical_binaries.push_back(version_dir.Append(kVersionedFiles[i]));
41 } 41 }
42 42
43 return critical_binaries; 43 return critical_binaries;
44 } 44 }
45 45
46 } // namespace safe_browsing 46 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698