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 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> | |
14 | 13 |
15 #include "base/string_util.h" | 14 #include "base/string_util.h" |
16 #include "chrome/installer/util/l10n_string_util.h" | 15 #include "chrome/installer/util/l10n_string_util.h" |
17 #include "chrome/installer/util/google_update_constants.h" | 16 #include "chrome/installer/util/google_update_constants.h" |
18 #include "chrome/installer/util/google_update_settings.h" | 17 #include "chrome/installer/util/google_update_settings.h" |
19 | 18 |
20 #include "installer_util_strings.h" | 19 #include "installer_util_strings.h" // NOLINT |
21 | 20 |
22 namespace { | 21 namespace { |
23 const wchar_t kChromeFrameGuid[] = L"{8BA986DA-5100-405E-AA35-86F34A02ACBF}"; | 22 const wchar_t kChromeFrameGuid[] = L"{8BA986DA-5100-405E-AA35-86F34A02ACBF}"; |
24 } | 23 } |
25 | 24 |
26 std::wstring ChromeFrameDistribution::GetAppGuid() { | 25 std::wstring ChromeFrameDistribution::GetAppGuid() { |
27 return kChromeFrameGuid; | 26 return kChromeFrameGuid; |
28 } | 27 } |
29 | 28 |
30 std::wstring ChromeFrameDistribution::GetApplicationName() { | 29 std::wstring ChromeFrameDistribution::GetApplicationName() { |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 bool ChromeFrameDistribution::CanSetAsDefault() { | 102 bool ChromeFrameDistribution::CanSetAsDefault() { |
104 return false; | 103 return false; |
105 } | 104 } |
106 | 105 |
107 void ChromeFrameDistribution::UpdateDiffInstallStatus(bool system_install, | 106 void ChromeFrameDistribution::UpdateDiffInstallStatus(bool system_install, |
108 bool incremental_install, installer_util::InstallStatus install_status) { | 107 bool incremental_install, installer_util::InstallStatus install_status) { |
109 GoogleUpdateSettings::UpdateDiffInstallStatus(system_install, | 108 GoogleUpdateSettings::UpdateDiffInstallStatus(system_install, |
110 incremental_install, GetInstallReturnCode(install_status), | 109 incremental_install, GetInstallReturnCode(install_status), |
111 kChromeFrameGuid); | 110 kChromeFrameGuid); |
112 } | 111 } |
| 112 |
| 113 FilePath::StringType ChromeFrameDistribution::GetKeyFile() { |
| 114 // TODO(tommi): Implement this for CEEE too. |
| 115 return installer_util::kChromeFrameDll; |
| 116 } |
OLD | NEW |