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

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

Issue 10246007: Fix GetAppShortcutName to return a localized name for Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 8 years, 8 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 dummy implementation of several functions from the 5 // This file defines dummy implementation of several functions from the
6 // BrowserDistribution class for Google Chrome. These functions allow 64-bit 6 // BrowserDistribution class for Google Chrome. These functions allow 64-bit
7 // Windows Chrome binary to build successfully. Since this binary is only used 7 // Windows Chrome binary to build successfully. Since this binary is only used
8 // for Native Client support, most of the install/uninstall functionality is not 8 // for Native Client support, most of the install/uninstall functionality is not
9 // necessary there. 9 // necessary there.
10 10
11 #include "chrome/installer/util/google_chrome_distribution.h" 11 #include "chrome/installer/util/google_chrome_distribution.h"
12 12
13 #include <windows.h> 13 #include <windows.h>
14 14
15 #include "base/file_path.h" 15 #include "base/file_path.h"
16 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/values.h" 17 #include "base/values.h"
18 18
19 GoogleChromeDistribution::GoogleChromeDistribution() 19 GoogleChromeDistribution::GoogleChromeDistribution()
20 : BrowserDistribution(CHROME_BROWSER) { 20 : BrowserDistribution(CHROME_BROWSER) {
21 } 21 }
22 22
23 void GoogleChromeDistribution::DoPostUninstallOperations( 23 void GoogleChromeDistribution::DoPostUninstallOperations(
24 const Version& version, 24 const Version& version,
25 const FilePath& local_data_path, 25 const FilePath& local_data_path,
26 const std::wstring& distribution_data) { 26 const string16& distribution_data) {
27 } 27 }
28 28
29 std::wstring GoogleChromeDistribution::GetAppGuid() { 29 string16 GoogleChromeDistribution::GetAppGuid() {
30 NOTREACHED(); 30 NOTREACHED();
31 return std::wstring(); 31 return string16();
32 } 32 }
33 33
34 std::wstring GoogleChromeDistribution::GetApplicationName() { 34 string16 GoogleChromeDistribution::GetApplicationName() {
35 NOTREACHED(); 35 NOTREACHED();
36 return std::wstring(); 36 return string16();
37 } 37 }
38 38
39 std::wstring GoogleChromeDistribution::GetAlternateApplicationName() { 39 string16 GoogleChromeDistribution::GetAppShortCutName() {
40 NOTREACHED(); 40 NOTREACHED();
41 return std::wstring(); 41 return string16();
42 } 42 }
43 43
44 std::wstring GoogleChromeDistribution::GetBrowserAppId() { 44 string16 GoogleChromeDistribution::GetAlternateApplicationName() {
45 NOTREACHED(); 45 NOTREACHED();
46 return std::wstring(); 46 return string16();
47 } 47 }
48 48
49 std::wstring GoogleChromeDistribution::GetInstallSubDir() { 49 string16 GoogleChromeDistribution::GetBrowserAppId() {
50 NOTREACHED(); 50 NOTREACHED();
51 return std::wstring(); 51 return string16();
52 } 52 }
53 53
54 std::wstring GoogleChromeDistribution::GetPublisherName() { 54 string16 GoogleChromeDistribution::GetInstallSubDir() {
55 NOTREACHED(); 55 NOTREACHED();
56 return std::wstring(); 56 return string16();
57 } 57 }
58 58
59 std::wstring GoogleChromeDistribution::GetAppDescription() { 59 string16 GoogleChromeDistribution::GetPublisherName() {
60 NOTREACHED(); 60 NOTREACHED();
61 return std::wstring(); 61 return string16();
62 }
63
64 string16 GoogleChromeDistribution::GetAppDescription() {
65 NOTREACHED();
66 return string16();
62 } 67 }
63 68
64 std::string GoogleChromeDistribution::GetSafeBrowsingName() { 69 std::string GoogleChromeDistribution::GetSafeBrowsingName() {
65 NOTREACHED(); 70 NOTREACHED();
66 return std::string(); 71 return std::string();
67 } 72 }
68 73
69 std::wstring GoogleChromeDistribution::GetStateKey() { 74 string16 GoogleChromeDistribution::GetStateKey() {
70 NOTREACHED(); 75 NOTREACHED();
71 return std::wstring(); 76 return string16();
72 } 77 }
73 78
74 std::wstring GoogleChromeDistribution::GetStateMediumKey() { 79 string16 GoogleChromeDistribution::GetStateMediumKey() {
75 NOTREACHED(); 80 NOTREACHED();
76 return std::wstring(); 81 return string16();
77 } 82 }
78 83
79 std::wstring GoogleChromeDistribution::GetStatsServerURL() { 84 string16 GoogleChromeDistribution::GetStatsServerURL() {
80 NOTREACHED(); 85 NOTREACHED();
81 return std::wstring(); 86 return string16();
82 } 87 }
83 88
84 std::string GoogleChromeDistribution::GetNetworkStatsServer() const { 89 std::string GoogleChromeDistribution::GetNetworkStatsServer() const {
85 NOTREACHED(); 90 NOTREACHED();
86 return std::string(); 91 return std::string();
87 } 92 }
88 93
89 std::string GoogleChromeDistribution::GetHttpPipeliningTestServer() const { 94 std::string GoogleChromeDistribution::GetHttpPipeliningTestServer() const {
90 NOTREACHED(); 95 NOTREACHED();
91 return std::string(); 96 return std::string();
92 } 97 }
93 98
94 std::wstring GoogleChromeDistribution::GetDistributionData(HKEY root_key) { 99 string16 GoogleChromeDistribution::GetDistributionData(HKEY root_key) {
95 NOTREACHED(); 100 NOTREACHED();
96 return std::wstring(); 101 return string16();
97 } 102 }
98 103
99 std::wstring GoogleChromeDistribution::GetUninstallLinkName() { 104 string16 GoogleChromeDistribution::GetUninstallLinkName() {
100 NOTREACHED(); 105 NOTREACHED();
101 return std::wstring(); 106 return string16();
102 } 107 }
103 108
104 std::wstring GoogleChromeDistribution::GetUninstallRegPath() { 109 string16 GoogleChromeDistribution::GetUninstallRegPath() {
105 NOTREACHED(); 110 NOTREACHED();
106 return std::wstring(); 111 return string16();
107 } 112 }
108 113
109 std::wstring GoogleChromeDistribution::GetVersionKey() { 114 string16 GoogleChromeDistribution::GetVersionKey() {
110 NOTREACHED(); 115 NOTREACHED();
111 return std::wstring(); 116 return string16();
112 } 117 }
113 118
114 bool GoogleChromeDistribution::GetDelegateExecuteHandlerData( 119 bool GoogleChromeDistribution::GetDelegateExecuteHandlerData(
115 string16* handler_class_uuid, 120 string16* handler_class_uuid,
116 string16* type_lib_uuid, 121 string16* type_lib_uuid,
117 string16* type_lib_version, 122 string16* type_lib_version,
118 string16* interface_uuid) { 123 string16* interface_uuid) {
119 NOTREACHED(); 124 NOTREACHED();
120 return false; 125 return false;
121 } 126 }
(...skipping 12 matching lines...) Expand all
134 } 139 }
135 140
136 void GoogleChromeDistribution::LaunchUserExperiment( 141 void GoogleChromeDistribution::LaunchUserExperiment(
137 const FilePath& setup_path, installer::InstallStatus status, 142 const FilePath& setup_path, installer::InstallStatus status,
138 const Version& version, const installer::Product& product, 143 const Version& version, const installer::Product& product,
139 bool system_level) { 144 bool system_level) {
140 NOTREACHED(); 145 NOTREACHED();
141 } 146 }
142 147
143 void GoogleChromeDistribution::InactiveUserToastExperiment(int flavor, 148 void GoogleChromeDistribution::InactiveUserToastExperiment(int flavor,
144 const std::wstring& experiment_group, 149 const string16& experiment_group,
145 const installer::Product& installation, 150 const installer::Product& installation,
146 const FilePath& application_path) { 151 const FilePath& application_path) {
147 NOTREACHED(); 152 NOTREACHED();
148 } 153 }
149 154
150 bool GoogleChromeDistribution::ExtractUninstallMetricsFromFile( 155 bool GoogleChromeDistribution::ExtractUninstallMetricsFromFile(
151 const FilePath& file_path, std::wstring* uninstall_metrics_string) { 156 const FilePath& file_path, string16* uninstall_metrics_string) {
152 NOTREACHED(); 157 NOTREACHED();
153 return false; 158 return false;
154 } 159 }
155 160
156 bool GoogleChromeDistribution::ExtractUninstallMetrics( 161 bool GoogleChromeDistribution::ExtractUninstallMetrics(
157 const DictionaryValue& root, std::wstring* uninstall_metrics_string) { 162 const DictionaryValue& root, string16* uninstall_metrics_string) {
158 NOTREACHED(); 163 NOTREACHED();
159 return false; 164 return false;
160 } 165 }
161 166
162 bool GoogleChromeDistribution::BuildUninstallMetricsString( 167 bool GoogleChromeDistribution::BuildUninstallMetricsString(
163 DictionaryValue* uninstall_metrics_dict, std::wstring* metrics) { 168 DictionaryValue* uninstall_metrics_dict, string16* metrics) {
164 NOTREACHED(); 169 NOTREACHED();
165 return false; 170 return false;
166 } 171 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698