Add a per-service expiration time for recording in DevToolsBackgroundServicesContext

When the recording mode is toggled for a background service, it should
be persisted so that the browser knows whether to continue logging on
startup. The information is stored in the form of an expiry timestamp in
Profile preferences.

Bug: 927726
Change-Id: I4d1681b8aa184b0d2f40e31774a19334708357fa
Reviewed-on: https://chromium-review.googlesource.com/c/1450257
Commit-Queue: Rayan Kanso <[email protected]>
Reviewed-by: Dmitry Gozman <[email protected]>
Cr-Commit-Position: refs/heads/master@{#631710}
9 files changed