Commit 1725ead0 authored by Jarryd's avatar Jarryd Committed by Chromium LUCI CQ

Quota: Minor cleanup for QuotaManager.

Replace the deprecated DISALLOW_COPY_AND_ASSIGN macro with deleted
copy constructor and assignment operator.

Change-Id: I63c8719a9ee49b602d3a6e5e9c74925f2699551a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2590690
Commit-Queue: Darwin Huang <huangdarwin@chromium.org>
Reviewed-by: default avatarDarwin Huang <huangdarwin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#836896}
parent 6ea37735
...@@ -147,6 +147,8 @@ class COMPONENT_EXPORT(STORAGE_BROWSER) QuotaManager ...@@ -147,6 +147,8 @@ class COMPONENT_EXPORT(STORAGE_BROWSER) QuotaManager
base::RepeatingClosure quota_change_callback, base::RepeatingClosure quota_change_callback,
scoped_refptr<SpecialStoragePolicy> special_storage_policy, scoped_refptr<SpecialStoragePolicy> special_storage_policy,
const GetQuotaSettingsFunc& get_settings_function); const GetQuotaSettingsFunc& get_settings_function);
QuotaManager(const QuotaManager&) = delete;
QuotaManager& operator=(const QuotaManager&) = delete;
const QuotaSettings& settings() const { return settings_; } const QuotaSettings& settings() const { return settings_; }
void SetQuotaSettings(const QuotaSettings& settings); void SetQuotaSettings(const QuotaSettings& settings);
...@@ -581,8 +583,6 @@ class COMPONENT_EXPORT(STORAGE_BROWSER) QuotaManager ...@@ -581,8 +583,6 @@ class COMPONENT_EXPORT(STORAGE_BROWSER) QuotaManager
SEQUENCE_CHECKER(sequence_checker_); SEQUENCE_CHECKER(sequence_checker_);
base::WeakPtrFactory<QuotaManager> weak_factory_{this}; base::WeakPtrFactory<QuotaManager> weak_factory_{this};
DISALLOW_COPY_AND_ASSIGN(QuotaManager);
}; };
} // namespace storage } // namespace storage
......
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