diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-07 22:32:27 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-07 22:32:27 +0000 |
commit | 525074deccb1954b01152c2925a81ab2359f9d58 (patch) | |
tree | ff013f639e84d46d14f953a073c239542eadc13d /chrome/browser/sync | |
parent | 5543f281ec7c230497fd5d7437721d41a31bb1b5 (diff) | |
download | chromium_src-525074deccb1954b01152c2925a81ab2359f9d58.zip chromium_src-525074deccb1954b01152c2925a81ab2359f9d58.tar.gz chromium_src-525074deccb1954b01152c2925a81ab2359f9d58.tar.bz2 |
Cleanup: Use more specific friend struct / make destructors non-public for classes with DeleteOnFooThread trait.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6627007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77201 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync')
-rw-r--r-- | chrome/browser/sync/glue/data_type_controller.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/chrome/browser/sync/glue/data_type_controller.h b/chrome/browser/sync/glue/data_type_controller.h index 1e9ae11..adedad7 100644 --- a/chrome/browser/sync/glue/data_type_controller.h +++ b/chrome/browser/sync/glue/data_type_controller.h @@ -89,15 +89,12 @@ class DataTypeController // Current state of the data type controller. virtual State state() = 0; - // TODO(sync): Make this protected. It currently causes a build error on - // Linux to do so. - virtual ~DataTypeController() {} - protected: - friend class base::RefCountedThreadSafe<DataTypeController>; - friend class BrowserThread; + friend struct BrowserThread::DeleteOnThread<BrowserThread::UI>; friend class DeleteTask<DataTypeController>; friend class ShutdownTask; + + virtual ~DataTypeController() {} }; } // namespace browser_sync |