]> khamidou — GitHub mirrors - electron.git/commitdiff
Fix building on Windows
authorCheng Zhao <zcbenz@gmail.com>
Fri, 13 Nov 2015 05:23:13 +0000 (13:23 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 13 Nov 2015 05:23:13 +0000 (13:23 +0800)
chromium_src/chrome/common/chrome_paths_win.cc

index 18073ca04759a79e61e08025286c86dd5ef4061f..37f4ec2b05bd629da4e9fe2dab4e7ea6af64ec06 100644 (file)
@@ -15,9 +15,6 @@
 #include "base/win/metro.h"
 #include "base/win/scoped_co_mem.h"
 #include "chrome/common/chrome_constants.h"
-#include "chrome/common/chrome_switches.h"
-#include "chrome/installer/util/browser_distribution.h"
-#include "components/nacl/common/nacl_switches.h"
 
 namespace chrome {
 
@@ -43,12 +40,7 @@ bool GetUserDirectory(int csidl_folder, base::FilePath* result) {
 }  // namespace
 
 bool GetDefaultUserDataDirectory(base::FilePath* result) {
-  if (!PathService::Get(base::DIR_LOCAL_APP_DATA, result))
-    return false;
-  BrowserDistribution* dist = BrowserDistribution::GetDistribution();
-  *result = result->Append(dist->GetInstallSubDir());
-  *result = result->Append(chrome::kUserDataDirname);
-  return true;
+  return PathService::Get(base::DIR_LOCAL_APP_DATA, result);
 }
 
 void GetUserCacheDirectory(const base::FilePath& profile_dir,
@@ -106,16 +98,9 @@ bool ProcessNeedsProfileDir(const std::string& process_type) {
   // service processes to be able to use the profile directory because if it
   // lies on a network share the sandbox will prevent us from accessing it.
 
-  if (process_type.empty() || process_type == switches::kServiceProcess)
+  if (process_type.empty())
     return true;
 
-#if !defined(DISABLE_NACL)
-  if (process_type == switches::kNaClBrokerProcess ||
-      process_type == switches::kNaClLoaderProcess) {
-    return true;
-  }
-#endif
-
   return false;
 }