Fix scoped_refptr assignment operator in the case of having it as a member.

If a class holds a reference to itself in scoped_refptr, assigning
to it a new value leads to calling Release while in destructor.

R=levin@chromium.org
TEST=RefCountedUnitTest.ScopedRefPtrToSelf

Review URL: http://codereview.chromium.org/9021020

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116480 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: e6130b2754e6d6ecc9834fc0b5d30725bba5ba73
2 files changed
tree: d3b8b1fce889c021dc77f154320a780f1e745bd9
  1. base/
  2. build/
  3. dbus/
  4. ipc/
  5. testing/
  6. third_party/