diff options
Diffstat (limited to 'chrome/browser/browsing_data_remover.cc')
-rw-r--r-- | chrome/browser/browsing_data_remover.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/browsing_data_remover.cc b/chrome/browser/browsing_data_remover.cc index 0e40380..00f805b 100644 --- a/chrome/browser/browsing_data_remover.cc +++ b/chrome/browser/browsing_data_remover.cc @@ -67,7 +67,7 @@ void BrowsingDataRemover::Remove(int remove_mask) { if (keywords_model && !keywords_model->loaded()) { waiting_for_keywords_ = true; NotificationService::current()->AddObserver( - this, TEMPLATE_URL_MODEL_LOADED, + this, NotificationType::TEMPLATE_URL_MODEL_LOADED, Source<TemplateURLModel>(keywords_model)); keywords_model->Load(); } else if (keywords_model) { @@ -156,11 +156,12 @@ void BrowsingDataRemover::Observe(NotificationType type, // TODO(brettw) bug 1139736: This should also observe session // clearing (what about other things such as passwords, etc.?) and wait for // them to complete before continuing. - DCHECK(type == TEMPLATE_URL_MODEL_LOADED); + DCHECK(type == NotificationType::TEMPLATE_URL_MODEL_LOADED); TemplateURLModel* model = Source<TemplateURLModel>(source).ptr(); if (model->profile() == profile_->GetOriginalProfile()) { NotificationService::current()->RemoveObserver( - this, TEMPLATE_URL_MODEL_LOADED, + this, + NotificationType::TEMPLATE_URL_MODEL_LOADED, Source<TemplateURLModel>(model)); model->RemoveAutoGeneratedBetween(delete_begin_, delete_end_); |