sql: Make Connection::StatementRef use 1-based ref-counting.
0-based ref-counting is deprecated. 1-based counting is described in //base/memory/ref_counted.h. In summary, instaces must be created by base::MakeRefCounted<T> or (less ideal) base::AdoptRef(new T). This CL switches Connection::StatementRef to 1-based ref-counting, and std::move()'s scoped_refptr<StatementRef> in a few places where that avoids refcount churn. Bug: none Change-Id: I14755dc2482f18c8a9582066104f346c2873941d Reviewed-on: https://chromium-review.googlesource.com/1137848 Commit-Queue: Victor Costan <pwnall@chromium.org> Reviewed-by:Chris Mumford <cmumford@chromium.org> Cr-Commit-Position: refs/heads/master@{#575876}
Showing
Please register or sign in to comment