Index: chrome/browser/browsing_data_remover.h |
diff --git a/chrome/browser/browsing_data_remover.h b/chrome/browser/browsing_data_remover.h |
index 8f6351af05246bcacf03312eb01dfc2968ce8ab4..870f5e7fe09a67ecc1018fffa99de933ac817182 100644 |
--- a/chrome/browser/browsing_data_remover.h |
+++ b/chrome/browser/browsing_data_remover.h |
@@ -98,6 +98,10 @@ class BrowsingDataRemover : public NotificationObserver, |
static bool is_removing() { return removing_; } |
private: |
+ // The clear API needs to be able to toggle removing_ in order to test that |
+ // only one BrowsingDataRemover instance can be called at a time. |
+ FRIEND_TEST_ALL_PREFIXES(ExtensionApiTest, ClearOneAtATime); |
+ |
enum CacheState { |
STATE_NONE, |
STATE_CREATE_MAIN, |
@@ -175,6 +179,10 @@ class BrowsingDataRemover : public NotificationObserver, |
!waiting_for_clear_lso_data_; |
} |
+ // Setter for removing_; DCHECKs that we can only start removing if we're not |
+ // already removing, and vice-versa. |
+ static void set_removing(bool removing); |
+ |
NotificationRegistrar registrar_; |
// Profile we're to remove from. |