Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: chrome/installer/util/chrome_frame_distribution.cc

Issue 132583002: Installer string cleaning following Chrome Frame removal. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revised comment Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/installer/util/chrome_frame_distribution.h ('k') | chrome/installer/util/prebuild/create_string_rc.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698