OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 } | 44 } |
45 | 45 |
46 base::string16 ChromeFrameDistribution::GetDisplayName() { | 46 base::string16 ChromeFrameDistribution::GetDisplayName() { |
47 #if defined(GOOGLE_CHROME_BUILD) | 47 #if defined(GOOGLE_CHROME_BUILD) |
48 return L"Google Chrome Frame"; | 48 return L"Google Chrome Frame"; |
49 #else | 49 #else |
50 return L"Chromium Frame"; | 50 return L"Chromium Frame"; |
51 #endif | 51 #endif |
52 } | 52 } |
53 | 53 |
54 base::string16 ChromeFrameDistribution::GetShortcutName( | 54 base::string16 ChromeFrameDistribution::GetShortcutName() { |
55 ShortcutType shortcut_type) { | |
56 NOTREACHED(); | 55 NOTREACHED(); |
57 return base::string16(); | 56 return base::string16(); |
58 } | 57 } |
59 | 58 |
60 base::string16 ChromeFrameDistribution::GetInstallSubDir() { | 59 base::string16 ChromeFrameDistribution::GetInstallSubDir() { |
61 return L"Google\\Chrome Frame"; | 60 return L"Google\\Chrome Frame"; |
62 } | 61 } |
63 | 62 |
64 base::string16 ChromeFrameDistribution::GetPublisherName() { | 63 base::string16 ChromeFrameDistribution::GetPublisherName() { |
65 const base::string16& publisher_name = | 64 const base::string16& publisher_name = |
(...skipping 15 matching lines...) Expand all Loading... |
81 | 80 |
82 base::string16 ChromeFrameDistribution::GetUninstallRegPath() { | 81 base::string16 ChromeFrameDistribution::GetUninstallRegPath() { |
83 return L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\" | 82 return L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\" |
84 L"Google Chrome Frame"; | 83 L"Google Chrome Frame"; |
85 } | 84 } |
86 | 85 |
87 base::string16 ChromeFrameDistribution::GetIconFilename() { | 86 base::string16 ChromeFrameDistribution::GetIconFilename() { |
88 return installer::kChromeExe; | 87 return installer::kChromeExe; |
89 } | 88 } |
90 | 89 |
91 int ChromeFrameDistribution::GetIconIndex(ShortcutType shortcut_type) { | 90 int ChromeFrameDistribution::GetIconIndex() { |
92 switch (shortcut_type) { | 91 return 0; |
93 case SHORTCUT_CHROME: | |
94 return 0; | |
95 default: | |
96 NOTREACHED(); | |
97 return 0; | |
98 } | |
99 } | 92 } |
100 | 93 |
101 BrowserDistribution::DefaultBrowserControlPolicy | 94 BrowserDistribution::DefaultBrowserControlPolicy |
102 ChromeFrameDistribution::GetDefaultBrowserControlPolicy() { | 95 ChromeFrameDistribution::GetDefaultBrowserControlPolicy() { |
103 return DEFAULT_BROWSER_UNSUPPORTED; | 96 return DEFAULT_BROWSER_UNSUPPORTED; |
104 } | 97 } |
105 | 98 |
106 bool ChromeFrameDistribution::CanCreateDesktopShortcuts() { | 99 bool ChromeFrameDistribution::CanCreateDesktopShortcuts() { |
107 return false; | 100 return false; |
108 } | 101 } |
109 | 102 |
110 base::string16 ChromeFrameDistribution::GetCommandExecuteImplClsid() { | 103 base::string16 ChromeFrameDistribution::GetCommandExecuteImplClsid() { |
111 return base::string16(); | 104 return base::string16(); |
112 } | 105 } |
113 | 106 |
114 void ChromeFrameDistribution::UpdateInstallStatus(bool system_install, | 107 void ChromeFrameDistribution::UpdateInstallStatus(bool system_install, |
115 installer::ArchiveType archive_type, | 108 installer::ArchiveType archive_type, |
116 installer::InstallStatus install_status) { | 109 installer::InstallStatus install_status) { |
117 #if defined(GOOGLE_CHROME_BUILD) | 110 #if defined(GOOGLE_CHROME_BUILD) |
118 GoogleUpdateSettings::UpdateInstallStatus(system_install, | 111 GoogleUpdateSettings::UpdateInstallStatus(system_install, |
119 archive_type, InstallUtil::GetInstallReturnCode(install_status), | 112 archive_type, InstallUtil::GetInstallReturnCode(install_status), |
120 kChromeFrameGuid); | 113 kChromeFrameGuid); |
121 #endif | 114 #endif |
122 } | 115 } |
OLD | NEW |