| 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 28 matching lines...) Expand all Loading... |
| 39 base::string16 ChromeFrameDistribution::GetBrowserProgIdPrefix() { | 39 base::string16 ChromeFrameDistribution::GetBrowserProgIdPrefix() { |
| 40 NOTREACHED(); | 40 NOTREACHED(); |
| 41 return base::string16(); | 41 return base::string16(); |
| 42 } | 42 } |
| 43 | 43 |
| 44 base::string16 ChromeFrameDistribution::GetBrowserProgIdDesc() { | 44 base::string16 ChromeFrameDistribution::GetBrowserProgIdDesc() { |
| 45 NOTREACHED(); | 45 NOTREACHED(); |
| 46 return base::string16(); | 46 return base::string16(); |
| 47 } | 47 } |
| 48 | 48 |
| 49 base::string16 ChromeFrameDistribution::GetDisplayName() { |
| 50 #if defined(GOOGLE_CHROME_BUILD) |
| 51 return L"Google Chrome Frame"; |
| 52 #else |
| 53 return L"Chromium Frame"; |
| 54 #endif |
| 55 } |
| 56 |
| 49 base::string16 ChromeFrameDistribution::GetShortcutName( | 57 base::string16 ChromeFrameDistribution::GetShortcutName( |
| 50 ShortcutType shortcut_type) { | 58 ShortcutType shortcut_type) { |
| 51 switch (shortcut_type) { | 59 NOTREACHED(); |
| 52 case SHORTCUT_CHROME: | 60 return base::string16(); |
| 53 case SHORTCUT_CHROME_ALTERNATE: | |
| 54 return installer::GetLocalizedString(IDS_PRODUCT_FRAME_NAME_BASE); | |
| 55 default: | |
| 56 NOTREACHED(); | |
| 57 return base::string16(); | |
| 58 } | |
| 59 } | 61 } |
| 60 | 62 |
| 61 base::string16 ChromeFrameDistribution::GetInstallSubDir() { | 63 base::string16 ChromeFrameDistribution::GetInstallSubDir() { |
| 62 return L"Google\\Chrome Frame"; | 64 return L"Google\\Chrome Frame"; |
| 63 } | 65 } |
| 64 | 66 |
| 65 base::string16 ChromeFrameDistribution::GetPublisherName() { | 67 base::string16 ChromeFrameDistribution::GetPublisherName() { |
| 66 const base::string16& publisher_name = | 68 const base::string16& publisher_name = |
| 67 installer::GetLocalizedString(IDS_ABOUT_VERSION_COMPANY_NAME_BASE); | 69 installer::GetLocalizedString(IDS_ABOUT_VERSION_COMPANY_NAME_BASE); |
| 68 return publisher_name; | 70 return publisher_name; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 | 150 |
| 149 void ChromeFrameDistribution::UpdateInstallStatus(bool system_install, | 151 void ChromeFrameDistribution::UpdateInstallStatus(bool system_install, |
| 150 installer::ArchiveType archive_type, | 152 installer::ArchiveType archive_type, |
| 151 installer::InstallStatus install_status) { | 153 installer::InstallStatus install_status) { |
| 152 #if defined(GOOGLE_CHROME_BUILD) | 154 #if defined(GOOGLE_CHROME_BUILD) |
| 153 GoogleUpdateSettings::UpdateInstallStatus(system_install, | 155 GoogleUpdateSettings::UpdateInstallStatus(system_install, |
| 154 archive_type, InstallUtil::GetInstallReturnCode(install_status), | 156 archive_type, InstallUtil::GetInstallReturnCode(install_status), |
| 155 kChromeFrameGuid); | 157 kChromeFrameGuid); |
| 156 #endif | 158 #endif |
| 157 } | 159 } |
| OLD | NEW |