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

Unified Diff: chrome/browser/shell_integration_linux.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/browser/shell_integration_linux.cc
diff --git a/chrome/browser/shell_integration_linux.cc b/chrome/browser/shell_integration_linux.cc
index 61a0092a7ea338420a66aed5d32706575045c1d8..ad1a65aff7dec39e1ba37cc12adf5880f7816aa8 100644
--- a/chrome/browser/shell_integration_linux.cc
+++ b/chrome/browser/shell_integration_linux.cc
@@ -680,7 +680,7 @@ base::FilePath GetExtensionShortcutFilename(const base::FilePath& profile_path,
file_util::ReplaceIllegalCharactersInPath(&filename, '_');
// Spaces in filenames break xdg-desktop-menu
// (see https://bugs.freedesktop.org/show_bug.cgi?id=66605).
- ReplaceChars(filename, " ", "_", &filename);
+ base::ReplaceChars(filename, " ", "_", &filename);
return base::FilePath(filename.append(".desktop"));
}
@@ -696,7 +696,7 @@ std::vector<base::FilePath> GetExistingProfileShortcutFilenames(
file_util::ReplaceIllegalCharactersInPath(&suffix, '_');
// Spaces in filenames break xdg-desktop-menu
// (see https://bugs.freedesktop.org/show_bug.cgi?id=66605).
- ReplaceChars(suffix, " ", "_", &suffix);
+ base::ReplaceChars(suffix, " ", "_", &suffix);
std::string glob = prefix + "*" + suffix + ".desktop";
base::FileEnumerator files(directory, false, base::FileEnumerator::FILES,

Powered by Google App Engine
This is Rietveld 408576698