Index: chrome/browser/profile_resetter/profile_resetter.cc |
diff --git a/chrome/browser/profile_resetter/profile_resetter.cc b/chrome/browser/profile_resetter/profile_resetter.cc |
index 2528754e54cd862b11263556b1dcaddd7be86fc1..61863b56ac4a75df6897cf3cf91cb1f28aa82e38 100644 |
--- a/chrome/browser/profile_resetter/profile_resetter.cc |
+++ b/chrome/browser/profile_resetter/profile_resetter.cc |
@@ -61,6 +61,11 @@ void ProfileResetter::Reset(ProfileResetter::ResettableFlags resettable_flags, |
DCHECK_EQ(resettable_flags, reset_triggered_for_flags); |
} |
+bool ProfileResetter::IsActive() const { |
+ DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); |
+ return pending_reset_flags_ != 0; |
+} |
+ |
void ProfileResetter::MarkAsDone(Resettable resettable) { |
DCHECK(CalledOnValidThread()); |