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 specific implementation of BrowserDistribution class for | 5 // This file defines specific implementation of BrowserDistribution class for |
6 // Google Chrome. | 6 // Google Chrome. |
7 | 7 |
8 #include "chrome/installer/util/google_chrome_distribution.h" | 8 #include "chrome/installer/util/google_chrome_distribution.h" |
9 | 9 |
10 #include <windows.h> | 10 #include <windows.h> |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
46 // Google Update tells us is the locale. In case we fail to find | 46 // Google Update tells us is the locale. In case we fail to find |
47 // the locale, we use US English. | 47 // the locale, we use US English. |
48 base::string16 LocalizeUrl(const wchar_t* url) { | 48 base::string16 LocalizeUrl(const wchar_t* url) { |
49 base::string16 language; | 49 base::string16 language; |
50 if (!GoogleUpdateSettings::GetLanguage(&language)) | 50 if (!GoogleUpdateSettings::GetLanguage(&language)) |
51 language = L"en-US"; // Default to US English. | 51 language = L"en-US"; // Default to US English. |
52 return ReplaceStringPlaceholders(url, language.c_str(), NULL); | 52 return ReplaceStringPlaceholders(url, language.c_str(), NULL); |
53 } | 53 } |
54 | 54 |
55 base::string16 GetUninstallSurveyUrl() { | 55 base::string16 GetUninstallSurveyUrl() { |
56 const wchar_t kSurveyUrl[] = L"http://www.google.com/support/chrome/bin/" | 56 const wchar_t kSurveyUrl[] = L"https://support.google.com/chrome/bin/" |
alexab
2015/05/22 00:08:48
https://support.google.com/chrome/
Dan Beam
2015/05/22 01:08:46
Done.
| |
57 L"request.py?hl=$1&contact_type=uninstall"; | 57 L"request.py?hl=$1&contact_type=uninstall"; |
alexab
2015/05/22 00:08:48
contact/uninstall3
Dan Beam
2015/05/22 01:08:46
Not done. (didn't work for me)
| |
58 return LocalizeUrl(kSurveyUrl); | 58 return LocalizeUrl(kSurveyUrl); |
59 } | 59 } |
60 | 60 |
61 } // namespace | 61 } // namespace |
62 | 62 |
63 GoogleChromeDistribution::GoogleChromeDistribution() | 63 GoogleChromeDistribution::GoogleChromeDistribution() |
64 : BrowserDistribution(CHROME_BROWSER, | 64 : BrowserDistribution(CHROME_BROWSER, |
65 scoped_ptr<AppRegistrationData>( | 65 scoped_ptr<AppRegistrationData>( |
66 new UpdatingAppRegistrationData(kChromeGuid))) { | 66 new UpdatingAppRegistrationData(kChromeGuid))) { |
67 } | 67 } |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
271 GetAppGuid()); | 271 GetAppGuid()); |
272 } | 272 } |
273 | 273 |
274 bool GoogleChromeDistribution::ShouldSetExperimentLabels() { | 274 bool GoogleChromeDistribution::ShouldSetExperimentLabels() { |
275 return true; | 275 return true; |
276 } | 276 } |
277 | 277 |
278 bool GoogleChromeDistribution::HasUserExperiments() { | 278 bool GoogleChromeDistribution::HasUserExperiments() { |
279 return true; | 279 return true; |
280 } | 280 } |
OLD | NEW |