| 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 30 matching lines...) Expand all Loading... |
| 41 const wchar_t kCommandExecuteImplUuid[] = | 41 const wchar_t kCommandExecuteImplUuid[] = |
| 42 L"{5C65F4B0-3651-4514-B207-D10CB699B14B}"; | 42 L"{5C65F4B0-3651-4514-B207-D10CB699B14B}"; |
| 43 | 43 |
| 44 // Substitute the locale parameter in uninstall URL with whatever | 44 // Substitute the locale parameter in uninstall URL with whatever |
| 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 base::ReplaceStringPlaceholders(url, language.c_str(), NULL); |
| 52 } | 52 } |
| 53 | 53 |
| 54 base::string16 GetUninstallSurveyUrl() { | 54 base::string16 GetUninstallSurveyUrl() { |
| 55 const wchar_t kSurveyUrl[] = L"https://support.google.com/chrome/" | 55 const wchar_t kSurveyUrl[] = L"https://support.google.com/chrome/" |
| 56 L"contact/chromeuninstall3?hl=$1"; | 56 L"contact/chromeuninstall3?hl=$1"; |
| 57 return LocalizeUrl(kSurveyUrl); | 57 return LocalizeUrl(kSurveyUrl); |
| 58 } | 58 } |
| 59 | 59 |
| 60 } // namespace | 60 } // namespace |
| 61 | 61 |
| (...skipping 208 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 |