summaryrefslogtreecommitdiffstats
path: root/chrome/browser/importer
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-08 02:38:11 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-08 02:38:11 +0000
commit882245ec433abea563a0af490b175f19d8d19f4a (patch)
tree9161761c8e6ea266fbaadcd56485c020faf7bcf0 /chrome/browser/importer
parent662f1b0ba958b4413c1a3742193d9443d5fe2d51 (diff)
downloadchromium_src-882245ec433abea563a0af490b175f19d8d19f4a.zip
chromium_src-882245ec433abea563a0af490b175f19d8d19f4a.tar.gz
chromium_src-882245ec433abea563a0af490b175f19d8d19f4a.tar.bz2
Remove the usage of the deprecated AppendToPath in nss_decryptor_win.cc
BUG=24672 TEST=trybots Review URL: http://codereview.chromium.org/6189003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70830 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/importer')
-rw-r--r--chrome/browser/importer/nss_decryptor_win.cc15
1 files changed, 7 insertions, 8 deletions
diff --git a/chrome/browser/importer/nss_decryptor_win.cc b/chrome/browser/importer/nss_decryptor_win.cc
index a662abb..a7b5592 100644
--- a/chrome/browser/importer/nss_decryptor_win.cc
+++ b/chrome/browser/importer/nss_decryptor_win.cc
@@ -1,9 +1,10 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/importer/nss_decryptor_win.h"
-#include "base/file_util.h"
+
+#include "base/file_path.h"
#include "base/sys_string_conversions.h"
namespace {
@@ -59,9 +60,8 @@ bool NSSDecryptor::Init(const std::wstring& dll_path,
// Fall back on LoadLibraryEx if SetDllDirectory isn't available. We
// actually prefer this method because it doesn't change the DLL search
// path, which is a process-wide property.
- std::wstring path = dll_path;
- file_util::AppendToPath(&path, kNSS3Library);
- nss3_dll_ = LoadLibraryEx(path.c_str(), NULL,
+ FilePath path = FilePath(dll_path).Append(kNSS3Library);
+ nss3_dll_ = LoadLibraryEx(path.value().c_str(), NULL,
LOAD_WITH_ALTERED_SEARCH_PATH);
if (nss3_dll_ == NULL)
return false;
@@ -76,9 +76,8 @@ bool NSSDecryptor::Init(const std::wstring& dll_path,
// LOAD_WITH_ALTERED_SEARCH_PATH flag. This helps because LoadLibrary
// doesn't load a DLL again if it's already loaded. This workaround is
// harmless for NSS 3.11.
- path = dll_path;
- file_util::AppendToPath(&path, kSoftokn3Library);
- softokn3_dll_ = LoadLibraryEx(path.c_str(), NULL,
+ path = FilePath(dll_path).Append(kSoftokn3Library);
+ softokn3_dll_ = LoadLibraryEx(path.value().c_str(), NULL,
LOAD_WITH_ALTERED_SEARCH_PATH);
if (softokn3_dll_ == NULL) {
Free();