Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6680)

Unified Diff: chrome/common/chrome_paths.cc

Issue 10392134: Revert 136042 - Make sure only the main browser process and service proceses are allowed to create … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_paths.cc
===================================================================
--- chrome/common/chrome_paths.cc (revision 137498)
+++ chrome/common/chrome_paths.cc (working copy)
@@ -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"
@@ -144,22 +143,13 @@
FilePath cur;
switch (key) {
- case chrome::DIR_USER_DATA: {
- CommandLine *cmd_line = CommandLine::ForCurrentProcess();
- if (cmd_line) {
- // In some tests this check might be happening after the CommandLine
- // object has been destroyed. This is DCHECKED but in release builds
- // it might lead to a crash here.
- CHECK(ProcessNeedsProfileDir(cmd_line->GetSwitchValueASCII(
- switches::kProcessType)));
- }
+ case chrome::DIR_USER_DATA:
if (!GetDefaultUserDataDirectory(&cur)) {
NOTREACHED();
return false;
}
create_dir = true;
break;
- }
case chrome::DIR_USER_DOCUMENTS:
if (!GetUserDocumentsDirectory(&cur))
return false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698