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
4 files changed