Index: chrome/browser/extensions/blacklist.h |
diff --git a/chrome/browser/extensions/blacklist.h b/chrome/browser/extensions/blacklist.h |
index e3cfc80be41bc05489d3a6a465e119da6c44827a..5df6d9ec5d6de5ebfb075b5784b4339dd154af19 100644 |
--- a/chrome/browser/extensions/blacklist.h |
+++ b/chrome/browser/extensions/blacklist.h |
@@ -93,9 +93,14 @@ class Blacklist : public content::NotificationObserver, |
void IsBlacklisted(const std::string& extension_id, |
const IsBlacklistedCallback& callback); |
- // Used to mock BlacklistStateFetcher in unit tests. |
+ // Used to mock BlacklistStateFetcher in unit tests. Blacklist owns the |
+ // |fetcher|. |
void SetBlacklistStateFetcherForTest(BlacklistStateFetcher* fetcher); |
+ // Reset the owned BlacklistStateFetcher to null and return the current |
+ // BlacklistStateFetcher. |
+ BlacklistStateFetcher* ResetBlacklistStateFetcherForTest(); |
not at google - send to devlin
2013/12/21 00:34:24
return a scoped_ptr<BlacklistStateFetcher> here.
Oleg Eterevsky
2014/01/09 13:54:01
Done.
Oleg Eterevsky
2014/01/09 17:58:10
It turns out, after the holidays I forgot, that it
|
+ |
// Adds/removes an observer to the blacklist. |
void AddObserver(Observer* observer); |
void RemoveObserver(Observer* observer); |