Make sure that scoped_ptr<> cannot be used with ref-counted objects.

It's easy to type scoped_ptr<> instead of scoped_refptr<>. Such bugs are
hard to debug sometimes. This change adds compile-time check to make sure 
that scoped_ptr<> is not used for ref-counted objects.

Also fixed one (benign) instance of scoped_ptr<> being used for a 
ref-counted object.

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

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


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