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

Unified Diff: chrome/install_static/install_util.h

Issue 2884333004: Relocate Windows ProcessNeedsProfileDir to install_static (Closed)
Patch Set: typo Created 3 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 | « chrome/common/chrome_paths_win.cc ('k') | chrome/install_static/install_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « chrome/common/chrome_paths_win.cc ('k') | chrome/install_static/install_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698