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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 // Google Update tells us is the locale. In case we fail to find | 45 // Google Update tells us is the locale. In case we fail to find |
46 // the locale, we use US English. | 46 // the locale, we use US English. |
47 base::string16 LocalizeUrl(const wchar_t* url) { | 47 base::string16 LocalizeUrl(const wchar_t* url) { |
48 base::string16 language; | 48 base::string16 language; |
49 if (!GoogleUpdateSettings::GetLanguage(&language)) | 49 if (!GoogleUpdateSettings::GetLanguage(&language)) |
50 language = L"en-US"; // Default to US English. | 50 language = L"en-US"; // Default to US English. |
51 return ReplaceStringPlaceholders(url, language.c_str(), NULL); | 51 return ReplaceStringPlaceholders(url, language.c_str(), NULL); |
52 } | 52 } |
53 | 53 |
54 base::string16 GetUninstallSurveyUrl() { | 54 base::string16 GetUninstallSurveyUrl() { |
55 const wchar_t kSurveyUrl[] = L"http://www.google.com/support/chrome/bin/" | 55 const wchar_t kSurveyUrl[] = L"https://support.google.com/chrome/" |
56 L"request.py?hl=$1&contact_type=uninstall"; | 56 L"request.py?hl=$1&contact_type=uninstall"; |
57 return LocalizeUrl(kSurveyUrl); | 57 return LocalizeUrl(kSurveyUrl); |
58 } | 58 } |
59 | 59 |
60 } // namespace | 60 } // namespace |
61 | 61 |
62 GoogleChromeDistribution::GoogleChromeDistribution() | 62 GoogleChromeDistribution::GoogleChromeDistribution() |
63 : BrowserDistribution(CHROME_BROWSER, | 63 : BrowserDistribution(CHROME_BROWSER, |
64 scoped_ptr<AppRegistrationData>( | 64 scoped_ptr<AppRegistrationData>( |
65 new UpdatingAppRegistrationData(kChromeGuid))) { | 65 new UpdatingAppRegistrationData(kChromeGuid))) { |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 GetAppGuid()); | 270 GetAppGuid()); |
271 } | 271 } |
272 | 272 |
273 bool GoogleChromeDistribution::ShouldSetExperimentLabels() { | 273 bool GoogleChromeDistribution::ShouldSetExperimentLabels() { |
274 return true; | 274 return true; |
275 } | 275 } |
276 | 276 |
277 bool GoogleChromeDistribution::HasUserExperiments() { | 277 bool GoogleChromeDistribution::HasUserExperiments() { |
278 return true; | 278 return true; |
279 } | 279 } |
OLD | NEW |