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. |