Commit d39a4f95 authored by Xi Cheng's avatar Xi Cheng Committed by Commit Bot

Remove IsCollectionEnabled method which is unused

Bug: 851163
Change-Id: Ie02bf11865d1f84254d14723dfd55e26c1987609
Reviewed-on: https://chromium-review.googlesource.com/1256012
Commit-Queue: Ilya Sherman <isherman@chromium.org>
Reviewed-by: default avatarIlya Sherman <isherman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#595739}
parent 260cd179
...@@ -86,9 +86,6 @@ class PendingProfiles { ...@@ -86,9 +86,6 @@ class PendingProfiles {
// provided to future invocations of CollectProfilesIfCollectionEnabled. // provided to future invocations of CollectProfilesIfCollectionEnabled.
void SetCollectionEnabled(bool enabled); void SetCollectionEnabled(bool enabled);
// True if profiles are being collected.
bool IsCollectionEnabled() const;
// Adds |profile| to the list of profiles if collection is enabled; it is // Adds |profile| to the list of profiles if collection is enabled; it is
// not const& because it must be passed with std::move. // not const& because it must be passed with std::move.
void CollectProfilesIfCollectionEnabled(ProfileState profile); void CollectProfilesIfCollectionEnabled(ProfileState profile);
...@@ -147,11 +144,6 @@ void PendingProfiles::SetCollectionEnabled(bool enabled) { ...@@ -147,11 +144,6 @@ void PendingProfiles::SetCollectionEnabled(bool enabled) {
} }
} }
bool PendingProfiles::IsCollectionEnabled() const {
base::AutoLock scoped_lock(lock_);
return collection_enabled_;
}
void PendingProfiles::CollectProfilesIfCollectionEnabled(ProfileState profile) { void PendingProfiles::CollectProfilesIfCollectionEnabled(ProfileState profile) {
base::AutoLock scoped_lock(lock_); base::AutoLock scoped_lock(lock_);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment