| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <windows.h> | 5 #include <windows.h> |
| 6 | 6 |
| 7 #include "chrome/installer/util/logging_installer.h" | 7 #include "chrome/installer/util/logging_installer.h" |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/file_util.h" | |
| 11 #include "base/files/file.h" | 10 #include "base/files/file.h" |
| 12 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/files/file_util.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/logging_win.h" | 14 #include "base/logging_win.h" |
| 15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
| 16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
| 17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
| 18 #include "base/win/scoped_handle.h" | 18 #include "base/win/scoped_handle.h" |
| 19 #include "chrome/installer/util/master_preferences.h" | 19 #include "chrome/installer/util/master_preferences.h" |
| 20 #include "chrome/installer/util/master_preferences_constants.h" | 20 #include "chrome/installer/util/master_preferences_constants.h" |
| 21 #include "chrome/installer/util/util_constants.h" | 21 #include "chrome/installer/util/util_constants.h" |
| 22 | 22 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 static const base::FilePath::CharType kLogFilename[] = | 117 static const base::FilePath::CharType kLogFilename[] = |
| 118 FILE_PATH_LITERAL("chrome_installer.log"); | 118 FILE_PATH_LITERAL("chrome_installer.log"); |
| 119 | 119 |
| 120 // Fallback to current directory if getting the temp directory fails. | 120 // Fallback to current directory if getting the temp directory fails. |
| 121 base::FilePath tmp_path; | 121 base::FilePath tmp_path; |
| 122 ignore_result(PathService::Get(base::DIR_TEMP, &tmp_path)); | 122 ignore_result(PathService::Get(base::DIR_TEMP, &tmp_path)); |
| 123 return tmp_path.Append(kLogFilename); | 123 return tmp_path.Append(kLogFilename); |
| 124 } | 124 } |
| 125 | 125 |
| 126 } // namespace installer | 126 } // namespace installer |
| OLD | NEW |