Enable warnings for having RefCounted types with a public destructor.

Enable the Clang error that makes it a warning/error to derive from
base::RefCounted/RefCountedThreadSafe directly and have a public
destructor for Linux and Mac builds.

For ChromeOS builds, do not yet enable the warning, as it does not
yet build cleanly.

BUG=123295
TEST=it compiles
R=thakis


Review URL: https://chromiumcodereview.appspot.com/10414016

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