| 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) {
|
|
|