Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3693)

Unified Diff: extensions/browser/quota_service.h

Issue 2085673002: Remove calls to MessageLoop::current() in extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: extensions/browser/quota_service.h
diff --git a/extensions/browser/quota_service.h b/extensions/browser/quota_service.h
index 2ff8a1fab45593c7a35919bb6bccf9509fff1f57..40f5ff8cc5d21fa9475f94e47da7420489d0bcda 100644
--- a/extensions/browser/quota_service.h
+++ b/extensions/browser/quota_service.h
@@ -61,6 +61,17 @@ class QuotaService : public base::NonThreadSafe {
const base::ListValue* args,
const base::TimeTicks& event_time);
+ // An active ScopedDisablePurgeForTesting prevents QuotaService's constructor
+ // from starting a purge timer.
+ class ScopedDisablePurgeForTesting {
+ public:
+ ScopedDisablePurgeForTesting();
+ ~ScopedDisablePurgeForTesting();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ScopedDisablePurgeForTesting);
+ };
+
private:
typedef std::string ExtensionId;
typedef std::string FunctionName;

Powered by Google App Engine
This is Rietveld 408576698