Index: chrome_frame/test/net/fake_external_tab.cc |
=================================================================== |
--- chrome_frame/test/net/fake_external_tab.cc (revision 30046) |
+++ chrome_frame/test/net/fake_external_tab.cc (working copy) |
@@ -22,11 +22,12 @@ |
#include "chrome/browser/chrome_thread.h" |
#include "chrome/browser/process_singleton.h" |
#include "chrome/browser/profile_manager.h" |
+#include "chrome/browser/renderer_host/render_process_host.h" |
#include "chrome/common/chrome_constants.h" |
#include "chrome/common/chrome_paths.h" |
+#include "chrome/common/chrome_paths_internal.h" |
#include "chrome/common/chrome_switches.h" |
#include "chrome/common/pref_names.h" |
-#include "chrome/browser/renderer_host/render_process_host.h" |
#include "chrome_frame/utils.h" |
#include "chrome_frame/test/chrome_frame_test_utils.h" |
@@ -69,7 +70,7 @@ |
FakeExternalTab::FakeExternalTab() { |
PathService::Get(chrome::DIR_USER_DATA, &overridden_user_dir_); |
- user_data_dir_ = FilePath::FromWStringHack(GetProfilePath()); |
+ GetProfilePath(&user_data_dir_); |
PathService::Override(chrome::DIR_USER_DATA, user_data_dir_); |
process_singleton_.reset(new ProcessSingleton(user_data_dir_)); |
} |
@@ -84,11 +85,11 @@ |
return L"iexplore"; |
} |
-std::wstring FakeExternalTab::GetProfilePath() { |
- std::wstring path; |
- GetUserProfileBaseDirectory(&path); |
- file_util::AppendToPath(&path, GetProfileName()); |
- return path; |
+bool FakeExternalTab::GetProfilePath(FilePath* path) { |
+ if (!chrome::GetChromeFrameUserDataDirectory(path)) |
+ return false; |
+ *path = path->Append(GetProfileName()); |
+ return true; |
} |
void FakeExternalTab::Initialize() { |