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

Unified Diff: components/browser_watcher/exit_funnel_win.h

Issue 811483006: Don't report exit funnels for live processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
Index: components/browser_watcher/exit_funnel_win.h
diff --git a/components/browser_watcher/exit_funnel_win.h b/components/browser_watcher/exit_funnel_win.h
index 6b490da04aba66eefd922c13d4ef3ed52dcb1471..9af2b388a56d9500511395609651caf624b4f353 100644
--- a/components/browser_watcher/exit_funnel_win.h
+++ b/components/browser_watcher/exit_funnel_win.h
@@ -8,6 +8,7 @@
#include "base/macros.h"
#include "base/process/process_handle.h"
#include "base/strings/string16.h"
+#include "base/time/time.h"
#include "base/win/registry.h"
namespace browser_watcher {
@@ -29,6 +30,15 @@ class ExitFunnel {
// to |process|.
bool Init(const base::char16* registry_path, base::ProcessHandle process);
+ // Initializes the exit funnel with |registry_path|, |pid| and
+ // |creation_time|.
+ // Returns false on failure to create or open the registry path corresponding
+ // to |process|.
+ // Exposed for testing.
+ bool InitImpl(const base::char16* registry_path,
+ base::ProcessId pid,
+ base::Time creation_time);
+
// Records |event_name| at the current time in the registry for the process
// this instance is associated with. Returns false on failure to record the
// event.

Powered by Google App Engine
This is Rietveld 408576698