Remove unnecessary lock that causes reentry.

The StatisticsRecorder is acquiring a lock before
calling Import but the import calls back to the SR
which again tries to acquire the lock... and crashes.

The lock isn't necessary with the new persistent
iterator (which is lock-free) so move the Import
call outside of the locking.

BUG=546019
TBR=asvitkine

Review URL: https://codereview.chromium.org/1865303004

Cr-Commit-Position: refs/heads/master@{#385991}


CrOS-Libchrome-Original-Commit: fb54f51c8439575d53159e63dee651278434db9f
2 files changed
tree: 09c68eea72be6b55ee620f137a55aa0133cce72e
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/