summaryrefslogtreecommitdiffstats
path: root/chrome/common/chrome_paths.cc
diff options
context:
space:
mode:
authorpastarmovj@chromium.org <pastarmovj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-04 15:14:59 +0000
committerpastarmovj@chromium.org <pastarmovj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-04 15:14:59 +0000
commit72f582938721f2ad69e3eb034d0562938ae1c4f7 (patch)
tree021a56faf0af0abab0546d9d4a7594500d97a8e7 /chrome/common/chrome_paths.cc
parent1c47238c726247bb8718964941270905fa27b5be (diff)
downloadchromium_src-72f582938721f2ad69e3eb034d0562938ae1c4f7.zip
chromium_src-72f582938721f2ad69e3eb034d0562938ae1c4f7.tar.gz
chromium_src-72f582938721f2ad69e3eb034d0562938ae1c4f7.tar.bz2
Revert 135321 - Make sure only the main browser process and service proceses are allowed to create the profile directory.
This patch lets Chrome start with profile located on a network share on Windows Vista and newer. BUG=120388 TEST=Start Chrome with --user-data-dir pointing to a network share location and try to navigate to a web page. This should not lead to a hang of the renderer. Review URL: http://codereview.chromium.org/10306009 TBR=pastarmovj@chromium.org Review URL: https://chromiumcodereview.appspot.com/10382012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135347 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_paths.cc')
-rw-r--r--chrome/common/chrome_paths.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc
index 03aca08..37d1d92 100644
--- a/chrome/common/chrome_paths.cc
+++ b/chrome/common/chrome_paths.cc
@@ -15,7 +15,6 @@
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_paths_internal.h"
#include "chrome/common/chrome_switches.h"
-#include "content/public/common/content_switches.h"
#if defined(OS_MACOSX)
#include "base/mac/mac_util.h"
@@ -145,9 +144,6 @@ bool PathProvider(int key, FilePath* result) {
FilePath cur;
switch (key) {
case chrome::DIR_USER_DATA:
- CHECK(ProcessNeedsProfileDir(
- CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
- switches::kProcessType)));
if (!GetDefaultUserDataDirectory(&cur)) {
NOTREACHED();
return false;