Index: chrome_elf/chrome_elf_main.cc |
diff --git a/chrome_elf/chrome_elf_main.cc b/chrome_elf/chrome_elf_main.cc |
index 926668c54d3015e224004c125cc70f3237fd2253..9fbe197cdb656f89f75e0d98d1b79c1e3b8671ae 100644 |
--- a/chrome_elf/chrome_elf_main.cc |
+++ b/chrome_elf/chrome_elf_main.cc |
@@ -34,8 +34,9 @@ extern "C" void GetUserDataDirectoryThunk(wchar_t* user_data_dir, |
wchar_t* invalid_user_data_dir, |
size_t invalid_user_data_dir_length) { |
std::wstring user_data_dir_str, invalid_user_data_dir_str; |
- bool ret = install_static::GetUserDataDirectory(&user_data_dir_str, |
- &invalid_user_data_dir_str); |
+ bool ret = install_static::GetUserDataDirectory( |
+ install_static::InstallDetails::Get().mode(), &user_data_dir_str, |
+ &invalid_user_data_dir_str); |
assert(ret); |
install_static::IgnoreUnused(ret); |
wcsncpy_s(user_data_dir, user_data_dir_length, user_data_dir_str.c_str(), |