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

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

Issue 1227413007: Move ReplaceStringPlaceholders to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@join
Patch Set: Created 5 years, 5 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
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 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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/web_resource/promo_resource_service_unittest.cc ('k') | chrome/installer/util/l10n_string_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698