Browse Source

base::UTF8ToWide --> base::FromUTF8Unsafe

Shelley Vohr 7 years ago
parent
commit
fc920ffd06
1 changed files with 3 additions and 7 deletions
  1. 3 7
      brightray/browser/browser_main_parts.cc

+ 3 - 7
brightray/browser/browser_main_parts.cc

@@ -168,13 +168,9 @@ BrowserMainParts::~BrowserMainParts() {
 void OverrideAppLogsPath() {
   base::FilePath path;
   if (PathService::Get(brightray::DIR_APP_DATA, &path)) {
-    path = path.Append(base::UTF8ToWide(GetApplicationName()));
-#if defined(OS_WIN)
-    path = path.Append(L"logs");
-#else
-    path = path.Append("logs");
-#endif
-    PathService::Override(DIR_APP_LOGS, base::FilePath(path));
+    path = path.Append(base::FilePath::FromUTF8Unsafe(GetApplicationName()));
+    path = path.Append(base::FilePath::FromUTF8Unsafe("logs"));
+    PathService::Override(DIR_APP_LOGS, path);
   }
 }
 #endif