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=601457

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

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


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