base::UTF8ToWide --> base::FromUTF8Unsafe
This commit is contained in:
parent
c9dca6b8ad
commit
fc920ffd06
1 changed files with 3 additions and 7 deletions
|
@ -168,13 +168,9 @@ BrowserMainParts::~BrowserMainParts() {
|
||||||
void OverrideAppLogsPath() {
|
void OverrideAppLogsPath() {
|
||||||
base::FilePath path;
|
base::FilePath path;
|
||||||
if (PathService::Get(brightray::DIR_APP_DATA, &path)) {
|
if (PathService::Get(brightray::DIR_APP_DATA, &path)) {
|
||||||
path = path.Append(base::UTF8ToWide(GetApplicationName()));
|
path = path.Append(base::FilePath::FromUTF8Unsafe(GetApplicationName()));
|
||||||
#if defined(OS_WIN)
|
path = path.Append(base::FilePath::FromUTF8Unsafe("logs"));
|
||||||
path = path.Append(L"logs");
|
PathService::Override(DIR_APP_LOGS, path);
|
||||||
#else
|
|
||||||
path = path.Append("logs");
|
|
||||||
#endif
|
|
||||||
PathService::Override(DIR_APP_LOGS, base::FilePath(path));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue