OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/installer/setup/installer_crash_reporter_client.h" | 5 #include "chrome/installer/setup/installer_crash_reporter_client.h" |
6 | 6 |
7 #include "base/debug/crash_logging.h" | 7 #include "base/debug/crash_logging.h" |
8 #include "base/environment.h" | 8 #include "base/environment.h" |
9 #include "base/file_version_info.h" | 9 #include "base/file_version_info.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 std::unique_ptr<FileVersionInfo> version_info( | 49 std::unique_ptr<FileVersionInfo> version_info( |
50 FileVersionInfo::CreateFileVersionInfo(base::FilePath(exe_path))); | 50 FileVersionInfo::CreateFileVersionInfo(base::FilePath(exe_path))); |
51 if (version_info) { | 51 if (version_info) { |
52 *version = version_info->product_version(); | 52 *version = version_info->product_version(); |
53 *special_build = version_info->special_build(); | 53 *special_build = version_info->special_build(); |
54 } else { | 54 } else { |
55 *version = L"0.0.0.0-devel"; | 55 *version = L"0.0.0.0-devel"; |
56 } | 56 } |
57 | 57 |
58 GoogleUpdateSettings::GetChromeChannelAndModifiers( | 58 *channel_name = |
59 !GetIsPerUserInstall(exe_path), channel_name); | 59 GoogleUpdateSettings::GetChromeChannel(!GetIsPerUserInstall(exe_path)); |
60 } | 60 } |
61 | 61 |
62 bool InstallerCrashReporterClient::ShouldShowRestartDialog( | 62 bool InstallerCrashReporterClient::ShouldShowRestartDialog( |
63 base::string16* title, | 63 base::string16* title, |
64 base::string16* message, | 64 base::string16* message, |
65 bool* is_rtl_locale) { | 65 bool* is_rtl_locale) { |
66 // There is no UX associated with the installer, so no dialog should be shown. | 66 // There is no UX associated with the installer, so no dialog should be shown. |
67 return false; | 67 return false; |
68 } | 68 } |
69 | 69 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 } | 169 } |
170 } | 170 } |
171 | 171 |
172 return false; | 172 return false; |
173 } | 173 } |
174 | 174 |
175 bool InstallerCrashReporterClient::EnableBreakpadForProcess( | 175 bool InstallerCrashReporterClient::EnableBreakpadForProcess( |
176 const std::string& process_type) { | 176 const std::string& process_type) { |
177 return true; | 177 return true; |
178 } | 178 } |
OLD | NEW |