Index: chrome/install_static/install_util.h |
diff --git a/chrome/install_static/install_util.h b/chrome/install_static/install_util.h |
index 7be3400b00ce59d47027a617fd84c78127d9491b..1ee72706f0d9c11b75faaff4545fd0665a9ec2dc 100644 |
--- a/chrome/install_static/install_util.h |
+++ b/chrome/install_static/install_util.h |
@@ -21,12 +21,6 @@ namespace install_static { |
struct InstallConstants; |
-enum class ProcessType { |
- UNINITIALIZED, |
- NON_BROWSER_PROCESS, |
- BROWSER_PROCESS, |
-}; |
- |
// Registry key to store the stats/crash sampling state of Chrome. If set to 1, |
// stats and crash reports will be uploaded in line with the user's consent, |
// otherwise, uploads will be disabled. It is used to sample clients, to reduce |
@@ -154,10 +148,17 @@ bool ReportingIsEnforcedByPolicy(bool* crash_reporting_enabled); |
// process is the main browser process. |
void InitializeProcessType(); |
+// Returns true if the process type is initialized. False otherwise. |
+bool IsProcessTypeInitialized(); |
+ |
// Returns true if invoked in a Chrome process other than the main browser |
// process. False otherwise. |
bool IsNonBrowserProcess(); |
+// Returns true if the |process_type| has the rights to access the profile. |
+// False otherwise. |
+bool ProcessNeedsProfileDir(const std::string& process_type); |
+ |
// Populates |crash_dir| with the crash dump location, respecting modifications |
// to user-data-dir. |
// TODO(ananta) |
@@ -253,9 +254,6 @@ std::wstring DetermineChannel(const InstallConstants& mode, |
std::wstring* update_ap, |
std::wstring* update_cohort_name); |
-// Caches the |ProcessType| of the current process. |
-extern ProcessType g_process_type; |
- |
} // namespace install_static |
#endif // CHROME_INSTALL_STATIC_INSTALL_UTIL_H_ |