OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // This file declares util functions for setup project. | 5 // This file declares util functions for setup project. |
6 | 6 |
7 #include "chrome/installer/setup/setup_util.h" | 7 #include "chrome/installer/setup/setup_util.h" |
8 | 8 |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "chrome/installer/util/master_preferences.h" | |
13 #include "chrome/installer/util/util_constants.h" | 12 #include "chrome/installer/util/util_constants.h" |
14 #include "courgette/courgette.h" | 13 #include "courgette/courgette.h" |
15 #include "third_party/bspatch/mbspatch.h" | 14 #include "third_party/bspatch/mbspatch.h" |
16 | 15 |
17 int installer::ApplyDiffPatch(const FilePath& src, | 16 int installer::ApplyDiffPatch(const FilePath& src, |
18 const FilePath& patch, | 17 const FilePath& patch, |
19 const FilePath& dest) { | 18 const FilePath& dest) { |
20 VLOG(1) << "Applying patch " << patch.value() << " to file " << src.value() | 19 VLOG(1) << "Applying patch " << patch.value() << " to file " << src.value() |
21 << " and generating file " << dest.value(); | 20 << " and generating file " << dest.value(); |
22 | 21 |
(...skipping 23 matching lines...) Expand all Loading... |
46 file_util::FileEnumerator::FindInfo find_data = {0}; | 45 file_util::FileEnumerator::FindInfo find_data = {0}; |
47 version_enum.GetFindInfo(&find_data); | 46 version_enum.GetFindInfo(&find_data); |
48 VLOG(1) << "directory found: " << find_data.cFileName; | 47 VLOG(1) << "directory found: " << find_data.cFileName; |
49 version = Version::GetVersionFromString(WideToASCII(find_data.cFileName)); | 48 version = Version::GetVersionFromString(WideToASCII(find_data.cFileName)); |
50 if (version) | 49 if (version) |
51 break; | 50 break; |
52 } | 51 } |
53 | 52 |
54 return version; | 53 return version; |
55 } | 54 } |
OLD | NEW |