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

Unified Diff: chrome/browser/ui/webui/history_ui.cc

Issue 919843003: Clear app banner data when history is cleared. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
Index: chrome/browser/ui/webui/history_ui.cc
diff --git a/chrome/browser/ui/webui/history_ui.cc b/chrome/browser/ui/webui/history_ui.cc
index b580d6ec1b15ea70a592fe892f4799622e516a3a..e38798128250ce8bc9425423bf9518afefc659ca 100644
--- a/chrome/browser/ui/webui/history_ui.cc
+++ b/chrome/browser/ui/webui/history_ui.cc
@@ -20,6 +20,7 @@
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
#include "base/values.h"
+#include "chrome/browser/banners/app_banner_settings_helper.h"
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/history/history_service.h"
@@ -670,6 +671,9 @@ void BrowsingHistoryHandler::HandleRemoveVisits(const base::ListValue* args) {
activity_log->RemoveURLs(it->urls);
}
#endif
+
+ for (const auto& expire_entry : expire_list)
Bernhard Bauer 2015/02/13 10:05:06 I would also consider using the actual type instea
benwells 2015/02/15 22:56:05 Done.
+ AppBannerSettingsHelper::ClearHistoryForURLs(profile, expire_entry.urls);
}
void BrowsingHistoryHandler::HandleClearBrowsingData(

Powered by Google App Engine
This is Rietveld 408576698