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

Unified Diff: net/base/filename_util_icu.cc

Issue 447403002: Move file_util_icu to base::i18n namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/directory_lister_unittest.cc ('k') | printing/printed_document.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/filename_util_icu.cc
diff --git a/net/base/filename_util_icu.cc b/net/base/filename_util_icu.cc
index 72bce6e0c369bafacfd915442c4ec63147ffae2b..8c22eec9520b84de32fcab7a76481e168a1ce2b4 100644
--- a/net/base/filename_util_icu.cc
+++ b/net/base/filename_util_icu.cc
@@ -24,7 +24,7 @@ bool IsSafePortablePathComponent(const base::FilePath& component) {
return !component.empty() && (component == component.BaseName()) &&
(component == component.StripTrailingSeparators()) &&
FilePathToString16(component, &component16) &&
- file_util::IsFilenameLegal(component16) &&
+ base::i18n::IsFilenameLegal(component16) &&
!IsShellIntegratedExtension(extension) &&
(sanitized == component.value()) && !IsReservedName(component.value());
}
@@ -56,7 +56,7 @@ base::string16 GetSuggestedFilename(const GURL& url,
suggested_name,
mime_type,
default_name,
- base::Bind(&file_util::ReplaceIllegalCharactersInPath));
+ base::Bind(&base::i18n::ReplaceIllegalCharactersInPath));
}
base::FilePath GenerateFileName(const GURL& url,
@@ -72,14 +72,14 @@ base::FilePath GenerateFileName(const GURL& url,
suggested_name,
mime_type,
default_file_name,
- base::Bind(&file_util::ReplaceIllegalCharactersInPath)));
+ base::Bind(&base::i18n::ReplaceIllegalCharactersInPath)));
#if defined(OS_CHROMEOS)
// When doing file manager operations on ChromeOS, the file paths get
// normalized in WebKit layer, so let's ensure downloaded files have
// normalized names. Otherwise, we won't be able to handle files with NFD
// utf8 encoded characters in name.
- file_util::NormalizeFileNameEncoding(&generated_name);
+ base::i18n::NormalizeFileNameEncoding(&generated_name);
#endif
DCHECK(!generated_name.empty());
« no previous file with comments | « net/base/directory_lister_unittest.cc ('k') | printing/printed_document.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698