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

Unified Diff: chrome/installer/setup/install.cc

Issue 102843002: Move RemoveChars, ReplaceChars, TrimString, and TruncateUTF8ToByteSize to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/installer/setup/install.cc
diff --git a/chrome/installer/setup/install.cc b/chrome/installer/setup/install.cc
index 5049fdca81bcbfedbcbf4d959a6b40c6fbcd82d2..5c4f305a052d7dacd7329e59fddefd3fb622ff7a 100644
--- a/chrome/installer/setup/install.cc
+++ b/chrome/installer/setup/install.cc
@@ -289,9 +289,9 @@ installer::InstallShortcutOperation GetAppLauncherShortcutOperation(
namespace installer {
void EscapeXmlAttributeValueInSingleQuotes(string16* att_value) {
- ReplaceChars(*att_value, L"&", L"&", att_value);
- ReplaceChars(*att_value, L"'", L"'", att_value);
- ReplaceChars(*att_value, L"<", L"&lt;", att_value);
+ base::ReplaceChars(*att_value, L"&", L"&amp;", att_value);
+ base::ReplaceChars(*att_value, L"'", L"&apos;", att_value);
+ base::ReplaceChars(*att_value, L"<", L"&lt;", att_value);
}
bool CreateVisualElementsManifest(const base::FilePath& src_path,

Powered by Google App Engine
This is Rietveld 408576698