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

Unified Diff: chrome/browser/process_singleton.h

Issue 2399233002: Add histograms to the rendez-vous process (ProcessSingleton). (Closed)
Patch Set: fix compile Created 4 years, 2 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/browser/chrome_browser_main.cc ('k') | chrome/browser/process_singleton_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/process_singleton.h
diff --git a/chrome/browser/process_singleton.h b/chrome/browser/process_singleton.h
index fe11a1905fd5369e5acab6a1d4992e58627cf44d..96a9bf65f42d2cfab301a10573b25739e7e05a4e 100644
--- a/chrome/browser/process_singleton.h
+++ b/chrome/browser/process_singleton.h
@@ -49,13 +49,17 @@ class CommandLine;
class ProcessSingleton : public base::NonThreadSafe {
public:
+ // Logged as histograms, do not modify these values.
enum NotifyResult {
- PROCESS_NONE,
- PROCESS_NOTIFIED,
- PROFILE_IN_USE,
- LOCK_ERROR,
+ PROCESS_NONE = 0,
+ PROCESS_NOTIFIED = 1,
+ PROFILE_IN_USE = 2,
+ LOCK_ERROR = 3,
+ LAST_VALUE = LOCK_ERROR
};
+ static constexpr int kNumNotifyResults = LAST_VALUE + 1;
+
// Implement this callback to handle notifications from other processes. The
// callback will receive the command line and directory with which the other
// Chrome process was launched. Return true if the command line will be
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/process_singleton_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698