OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 defines a specific implementation of BrowserDistribution class for | 5 // This file defines a specific implementation of BrowserDistribution class for |
6 // Chrome Frame. It overrides the bare minimum of methods necessary to get a | 6 // Chrome Frame. It overrides the bare minimum of methods necessary to get a |
7 // Chrome Frame installer that does not interact with Google Chrome or | 7 // Chrome Frame installer that does not interact with Google Chrome or |
8 // Chromium installations. | 8 // Chromium installations. |
9 | 9 |
10 #include "chrome/installer/util/chrome_frame_distribution.h" | 10 #include "chrome/installer/util/chrome_frame_distribution.h" |
11 | 11 |
12 #include <string> | 12 #include <string> |
13 #include <windows.h> | 13 #include <windows.h> |
14 | 14 |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/registry.h" | |
17 #include "base/string_util.h" | 16 #include "base/string_util.h" |
18 #include "chrome/installer/util/l10n_string_util.h" | 17 #include "chrome/installer/util/l10n_string_util.h" |
19 #include "chrome/installer/util/google_update_constants.h" | 18 #include "chrome/installer/util/google_update_constants.h" |
20 #include "chrome/installer/util/google_update_settings.h" | 19 #include "chrome/installer/util/google_update_settings.h" |
21 | 20 |
22 #include "installer_util_strings.h" | 21 #include "installer_util_strings.h" |
23 | 22 |
24 namespace { | 23 namespace { |
25 const wchar_t kChromeFrameGuid[] = L"{8BA986DA-5100-405E-AA35-86F34A02ACBF}"; | 24 const wchar_t kChromeFrameGuid[] = L"{8BA986DA-5100-405E-AA35-86F34A02ACBF}"; |
26 } | 25 } |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 bool ChromeFrameDistribution::CanSetAsDefault() { | 104 bool ChromeFrameDistribution::CanSetAsDefault() { |
106 return false; | 105 return false; |
107 } | 106 } |
108 | 107 |
109 void ChromeFrameDistribution::UpdateDiffInstallStatus(bool system_install, | 108 void ChromeFrameDistribution::UpdateDiffInstallStatus(bool system_install, |
110 bool incremental_install, installer_util::InstallStatus install_status) { | 109 bool incremental_install, installer_util::InstallStatus install_status) { |
111 GoogleUpdateSettings::UpdateDiffInstallStatus(system_install, | 110 GoogleUpdateSettings::UpdateDiffInstallStatus(system_install, |
112 incremental_install, GetInstallReturnCode(install_status), | 111 incremental_install, GetInstallReturnCode(install_status), |
113 kChromeFrameGuid); | 112 kChromeFrameGuid); |
114 } | 113 } |
OLD | NEW |