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

Unified Diff: chrome/browser/browsing_data_remover.h

Issue 115674: More NotificationRegistrar conversions. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/browsing_data_remover.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data_remover.h
===================================================================
--- chrome/browser/browsing_data_remover.h (revision 16645)
+++ chrome/browser/browsing_data_remover.h (working copy)
@@ -8,7 +8,7 @@
#include "base/observer_list.h"
#include "base/time.h"
#include "chrome/browser/cancelable_request.h"
-#include "chrome/common/notification_observer.h"
+#include "chrome/common/notification_registrar.h"
class MessageLoop;
class Profile;
@@ -74,10 +74,12 @@
// Returns true if we're all done.
bool all_done() {
- return !waiting_for_keywords_ && !waiting_for_clear_cache_ &&
+ return registrar_.IsEmpty() && !waiting_for_clear_cache_ &&
!waiting_for_clear_history_;
}
+ NotificationRegistrar registrar_;
+
// Profile we're to remove from.
Profile* profile_;
@@ -90,9 +92,6 @@
// True if Remove has been invoked.
static bool removing_;
- // True if we're waiting for the TemplateURLModel to finish loading.
- bool waiting_for_keywords_;
-
// True if we're waiting for the history to be deleted.
bool waiting_for_clear_history_;
« no previous file with comments | « no previous file | chrome/browser/browsing_data_remover.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698