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

Unified Diff: app/os_exchange_data_provider_win.cc

Issue 271056: Do some cleanup of file path name handling. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | « no previous file | base/i18n/file_util_icu.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/os_exchange_data_provider_win.cc
===================================================================
--- app/os_exchange_data_provider_win.cc (revision 29772)
+++ app/os_exchange_data_provider_win.cc (working copy)
@@ -703,15 +703,15 @@
std::wstring* validated) {
if (title.empty()) {
if (url.is_valid()) {
- *validated = net::GetSuggestedFilename(
- url, std::string(), std::string(), std::wstring());
+ *validated = net::GetSuggestedFilename(url, std::string(),
+ std::string(), "").ToWStringHack();
} else {
// Nothing else can be done, just use a default.
*validated = l10n_util::GetString(IDS_APP_UNTITLED_SHORTCUT_FILE_NAME);
}
} else {
*validated = title;
- file_util::ReplaceIllegalCharacters(validated, '-');
+ file_util::ReplaceIllegalCharactersInPath(validated, '-');
}
static const wchar_t extension[] = L".url";
static const size_t max_length = MAX_PATH - arraysize(extension);
« no previous file with comments | « no previous file | base/i18n/file_util_icu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698