summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-17 22:07:23 +0000
committerjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-17 22:07:23 +0000
commitc48c61ba5360114271bf6cb1412a2c3b413a7da9 (patch)
tree6becab431f2050ddc07eb80d6885571753f19294 /chrome/common
parent3fa131ed261627dbf01646ff4d5a1194492aaaac (diff)
downloadchromium_src-c48c61ba5360114271bf6cb1412a2c3b413a7da9.zip
chromium_src-c48c61ba5360114271bf6cb1412a2c3b413a7da9.tar.gz
chromium_src-c48c61ba5360114271bf6cb1412a2c3b413a7da9.tar.bz2
Add Profile Import Process Type.
This is currently only used on OS X. We need a separate process to do profile import for 3 reasons: 1)In Firefox we load external libraries which we have no control over. 2)Conceptually it's safer to run parsing code OOP. 3)quoth chrome/browser/importer/nss_decryptor_mac.mm : """ On OS X the nss3 libraries are compiled with depedencies on one another, referenced using dyld's @executable_path directive. To make a long story short in order to get the libraries to load, dyld's fallback path needs to be set to the directory containing the libraries. To do so, the process this function runs in must have the DYLD_FALLBACK_LIBRARY_PATH set on startup to said directory. """ BUG=14458 TEST=None Possible Review URL: http://codereview.chromium.org/193131 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26501 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/chrome_switches.cc3
-rw-r--r--chrome/common/chrome_switches.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index 292d3d2..978c7c6 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -74,6 +74,9 @@ const wchar_t kWorkerProcess[] = L"worker";
// Causes the process to run as a utility subprocess.
const wchar_t kUtilityProcess[] = L"utility";
+// Causes the process to run as a profile import subprocess.
+const wchar_t kProfileImportProcess[] = L"profile-import";
+
// Runs the renderer and plugins in the same process as the browser
const wchar_t kSingleProcess[] = L"single-process";
diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h
index 02f6430..733d706 100644
--- a/chrome/common/chrome_switches.h
+++ b/chrome/common/chrome_switches.h
@@ -31,6 +31,7 @@ extern const wchar_t kBrowserSubprocessPath[];
extern const wchar_t kPluginProcess[];
extern const wchar_t kWorkerProcess[];
extern const wchar_t kUtilityProcess[];
+extern const wchar_t kProfileImportProcess[];
extern const wchar_t kSingleProcess[];
extern const wchar_t kProcessPerTab[];
extern const wchar_t kProcessPerSite[];