-
arthursonzogni authored
CL https://chromium-review.googlesource.com/1144813 prevents ownerless RefCounted receiver on base::Bind. The class AwLoginDelegate does a PostTask in its constructor using 'this'. This violate a CHECK(...). The CL makes the constructor private. It introduces the static method Create(). It wraps the raw pointer in the scoped_refptr class first and THEN call base::Bind on it. Bug: 870479 Change-Id: Iebbd51e3136fb1a52962b8f5a0951f6b89145742 Reviewed-on: https://chromium-review.googlesource.com/1179758Reviewed-by:
Richard Coles <torne@chromium.org> Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org> Cr-Commit-Position: refs/heads/master@{#584092}
dbce3023