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

Unified Diff: components/browser_watcher/exit_funnel_win.cc

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.cc
diff --git a/components/browser_watcher/exit_funnel_win.cc b/components/browser_watcher/exit_funnel_win.cc
index 69fa3378f74e898f6cc8643515e5a1c60553c689..5a817684fc734ad436505612b2ebfa534737bb94 100644
--- a/components/browser_watcher/exit_funnel_win.cc
+++ b/components/browser_watcher/exit_funnel_win.cc
@@ -31,9 +31,15 @@ bool ExitFunnel::Init(const base::char16* registry_path,
return false;
}
+ return InitImpl(registry_path, pid, base::Time::FromFileTime(creation_time));
+}
+
+bool ExitFunnel::InitImpl(const base::char16* registry_path,
+ base::ProcessId pid,
+ base::Time creation_time) {
base::string16 key_name = registry_path;
- base::StringAppendF(&key_name, L"\\%d-%lld", pid,
- base::Time::FromFileTime(creation_time).ToInternalValue());
+ base::StringAppendF(
+ &key_name, L"\\%d-%lld", pid, creation_time.ToInternalValue());
LONG res = key_.Create(HKEY_CURRENT_USER, key_name.c_str(), KEY_SET_VALUE);
if (res != ERROR_SUCCESS) {

Powered by Google App Engine
This is Rietveld 408576698