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

Unified Diff: chrome/browser/ui/website_settings/website_settings.cc

Issue 351553004: Port HistoryService::GetVisibleVisitCountToHost to CancelableTaskTracker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Linux ASAN tests Created 6 years, 6 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 | « chrome/browser/ui/website_settings/website_settings.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/website_settings/website_settings.cc
diff --git a/chrome/browser/ui/website_settings/website_settings.cc b/chrome/browser/ui/website_settings/website_settings.cc
index 0aeb602581c7ff58de637ee936293b7fe51b096b..dc6af4cb4c5b481efa49bfa97539b490a3086e43 100644
--- a/chrome/browser/ui/website_settings/website_settings.cc
+++ b/chrome/browser/ui/website_settings/website_settings.cc
@@ -150,9 +150,9 @@ WebsiteSettings::WebsiteSettings(
if (history_service) {
history_service->GetVisibleVisitCountToHost(
site_url_,
- &visit_count_request_consumer_,
base::Bind(&WebsiteSettings::OnGotVisitCountToHost,
- base::Unretained(this)));
+ base::Unretained(this)),
+ &visit_count_task_tracker_);
}
PresentSitePermissions();
@@ -269,8 +269,7 @@ void WebsiteSettings::OnSitePermissionChanged(ContentSettingsType type,
#endif
}
-void WebsiteSettings::OnGotVisitCountToHost(HistoryService::Handle handle,
- bool found_visits,
+void WebsiteSettings::OnGotVisitCountToHost(bool found_visits,
int visit_count,
base::Time first_visit) {
if (!found_visits) {
« no previous file with comments | « chrome/browser/ui/website_settings/website_settings.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698