diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-03 10:00:44 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-03 10:00:44 +0000 |
commit | 49aa5a338e8430c8424f6a344abc3b28515c598f (patch) | |
tree | 7cab2f122121ef0fe996e44c4b18bedf1b814370 /chrome/browser/browsing_data | |
parent | dca619fdd84f1ec74dfcca0ef18c5abd0fdee3dc (diff) | |
download | chromium_src-49aa5a338e8430c8424f6a344abc3b28515c598f.zip chromium_src-49aa5a338e8430c8424f6a344abc3b28515c598f.tar.gz chromium_src-49aa5a338e8430c8424f6a344abc3b28515c598f.tar.bz2 |
Cleanup: Remove some unused code, or make them platform specific.
Found by Scythe.
Review URL: https://codereview.chromium.org/136113019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@248465 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browsing_data')
-rw-r--r-- | chrome/browser/browsing_data/browsing_data_file_system_helper.cc | 6 | ||||
-rw-r--r-- | chrome/browser/browsing_data/browsing_data_file_system_helper.h | 12 |
2 files changed, 3 insertions, 15 deletions
diff --git a/chrome/browser/browsing_data/browsing_data_file_system_helper.cc b/chrome/browser/browsing_data/browsing_data_file_system_helper.cc index 62c7ee4..294c179 100644 --- a/chrome/browser/browsing_data/browsing_data_file_system_helper.cc +++ b/chrome/browser/browsing_data/browsing_data_file_system_helper.cc @@ -188,12 +188,10 @@ BrowsingDataFileSystemHelper* BrowsingDataFileSystemHelper::Create( } CannedBrowsingDataFileSystemHelper::CannedBrowsingDataFileSystemHelper( - Profile* profile) - : is_fetching_(false) { + Profile* profile) { } -CannedBrowsingDataFileSystemHelper::CannedBrowsingDataFileSystemHelper() - : is_fetching_(false) { +CannedBrowsingDataFileSystemHelper::CannedBrowsingDataFileSystemHelper() { } CannedBrowsingDataFileSystemHelper::~CannedBrowsingDataFileSystemHelper() {} diff --git a/chrome/browser/browsing_data/browsing_data_file_system_helper.h b/chrome/browser/browsing_data/browsing_data_file_system_helper.h index 9e81157..97e223f 100644 --- a/chrome/browser/browsing_data/browsing_data_file_system_helper.h +++ b/chrome/browser/browsing_data/browsing_data_file_system_helper.h @@ -144,23 +144,13 @@ class CannedBrowsingDataFileSystemHelper CannedBrowsingDataFileSystemHelper(); virtual ~CannedBrowsingDataFileSystemHelper(); - // Holds the current list of filesystems returned to the client. Access to - // |file_system_info_| is triggered indirectly via the UI thread and guarded - // by |is_fetching_|. This means |file_system_info_| is only accessed while - // |is_fetching_| is true. The flag |is_fetching_| is only accessed on the UI - // thread. + // Holds the current list of filesystems returned to the client. std::list<FileSystemInfo> file_system_info_; // The callback passed in at the beginning of the StartFetching workflow so // that it can be triggered via NotifyOnUIThread. base::Callback<void(const std::list<FileSystemInfo>&)> completion_callback_; - // Indicates whether or not we're currently fetching information: set to true - // when StartFetching is called on the UI thread, and reset to false when - // NotifyOnUIThread triggers the success callback. - // This property only mutates on the UI thread. - bool is_fetching_; - DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataFileSystemHelper); }; |