summaryrefslogtreecommitdiffstats
path: root/chrome/browser/importer/importer.cc
diff options
context:
space:
mode:
authordsh@google.com <dsh@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-03 01:21:09 +0000
committerdsh@google.com <dsh@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-03 01:21:09 +0000
commitdbf476de0ef1cdcc11c5f2d689b8755809a857fb (patch)
tree5a68c5a8fb056c10441752dcd230e96180d1e775 /chrome/browser/importer/importer.cc
parente1b01fc18365da2c58cc17981bf28fe71fd06b7e (diff)
downloadchromium_src-dbf476de0ef1cdcc11c5f2d689b8755809a857fb.zip
chromium_src-dbf476de0ef1cdcc11c5f2d689b8755809a857fb.tar.gz
chromium_src-dbf476de0ef1cdcc11c5f2d689b8755809a857fb.tar.bz2
Port Replace(First)SubstringsAfterOffset to string16.
Review URL: http://codereview.chromium.org/28324 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10767 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/importer/importer.cc')
-rw-r--r--chrome/browser/importer/importer.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/importer/importer.cc b/chrome/browser/importer/importer.cc
index 9c98362..2d3f924 100644
--- a/chrome/browser/importer/importer.cc
+++ b/chrome/browser/importer/importer.cc
@@ -667,7 +667,10 @@ void ImporterHost::DetectFirefoxProfiles() {
std::wstring is_relative, path, profile_path;
if (root.GetString(current_profile + L".IsRelative", &is_relative) &&
root.GetString(current_profile + L".Path", &path)) {
- ReplaceSubstringsAfterOffset(&path, 0, L"/", L"\\");
+ string16 path16 = WideToUTF16Hack(path);
+ ReplaceSubstringsAfterOffset(
+ &path16, 0, ASCIIToUTF16("/"), ASCIIToUTF16("\\"));
+ path.assign(UTF16ToWideHack(path16));
#if defined(OS_WIN)
// IsRelative=1 means the folder path would be relative to the