[Sync] Create UserEventService.
Created a new KeyedService to act as an entry point for reporting
UserEvents. Added simple logic in the UserEventService to detect if we
should be reporting or not.
Note that UserEvents is not currently hooked into Sync yet, and thus no
reporting is actually capable of happening. This will come in a
subsequent CL.
BUG=701032
Review-Url: https://codereview.chromium.org/2864973002
Cr-Commit-Position: refs/heads/master@{#470577}
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
index 85b6d5f..fcd028c 100644
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -1323,6 +1323,8 @@
"sync/supervised_user_signin_manager_wrapper.h",
"sync/sync_startup_tracker.cc",
"sync/sync_startup_tracker.h",
+ "sync/user_event_service_factory.cc",
+ "sync/user_event_service_factory.h",
"tab_contents/navigation_metrics_recorder.cc",
"tab_contents/navigation_metrics_recorder.h",
"tab_contents/tab_util.cc",