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 // 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" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 std::wstring key(google_update::kRegPathClientStateMedium); | 78 std::wstring key(google_update::kRegPathClientStateMedium); |
79 key.append(L"\\"); | 79 key.append(L"\\"); |
80 key.append(kChromeFrameGuid); | 80 key.append(kChromeFrameGuid); |
81 return key; | 81 return key; |
82 } | 82 } |
83 | 83 |
84 std::wstring ChromeFrameDistribution::GetStatsServerURL() { | 84 std::wstring ChromeFrameDistribution::GetStatsServerURL() { |
85 return L"https://clients4.google.com/firefox/metrics/collect"; | 85 return L"https://clients4.google.com/firefox/metrics/collect"; |
86 } | 86 } |
87 | 87 |
| 88 std::string ChromeFrameDistribution::GetNetworkStatsServer() const { |
| 89 // TODO(rtenneti): Return the network stats server name. |
| 90 return ""; |
| 91 } |
| 92 |
88 std::wstring ChromeFrameDistribution::GetUninstallLinkName() { | 93 std::wstring ChromeFrameDistribution::GetUninstallLinkName() { |
89 return L"Uninstall Chrome Frame"; | 94 return L"Uninstall Chrome Frame"; |
90 } | 95 } |
91 | 96 |
92 std::wstring ChromeFrameDistribution::GetUninstallRegPath() { | 97 std::wstring ChromeFrameDistribution::GetUninstallRegPath() { |
93 return L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\" | 98 return L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\" |
94 L"Google Chrome Frame"; | 99 L"Google Chrome Frame"; |
95 } | 100 } |
96 | 101 |
97 std::wstring ChromeFrameDistribution::GetVersionKey() { | 102 std::wstring ChromeFrameDistribution::GetVersionKey() { |
98 std::wstring key(google_update::kRegPathClients); | 103 std::wstring key(google_update::kRegPathClients); |
99 key.append(L"\\"); | 104 key.append(L"\\"); |
100 key.append(kChromeFrameGuid); | 105 key.append(kChromeFrameGuid); |
101 return key; | 106 return key; |
102 } | 107 } |
103 | 108 |
104 bool ChromeFrameDistribution::CanSetAsDefault() { | 109 bool ChromeFrameDistribution::CanSetAsDefault() { |
105 return false; | 110 return false; |
106 } | 111 } |
107 | 112 |
108 void ChromeFrameDistribution::UpdateInstallStatus(bool system_install, | 113 void ChromeFrameDistribution::UpdateInstallStatus(bool system_install, |
109 installer::ArchiveType archive_type, | 114 installer::ArchiveType archive_type, |
110 installer::InstallStatus install_status) { | 115 installer::InstallStatus install_status) { |
111 #if defined(GOOGLE_CHROME_BUILD) | 116 #if defined(GOOGLE_CHROME_BUILD) |
112 GoogleUpdateSettings::UpdateInstallStatus(system_install, | 117 GoogleUpdateSettings::UpdateInstallStatus(system_install, |
113 archive_type, InstallUtil::GetInstallReturnCode(install_status), | 118 archive_type, InstallUtil::GetInstallReturnCode(install_status), |
114 kChromeFrameGuid); | 119 kChromeFrameGuid); |
115 #endif | 120 #endif |
116 } | 121 } |
OLD | NEW |