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

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

Issue 2455503004: [MD History] Fix deletion in heavily scrolled list. (Closed)
Patch Set: add test Created 4 years, 1 month 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/browsing_history_handler.cc
diff --git a/chrome/browser/ui/webui/browsing_history_handler.cc b/chrome/browser/ui/webui/browsing_history_handler.cc
index b6e8fd16b5e774bfe3678d59085f57ad6a0b7cab..204f670422e100befa505865edc5a6307f3be9be 100644
--- a/chrome/browser/ui/webui/browsing_history_handler.cc
+++ b/chrome/browser/ui/webui/browsing_history_handler.cc
@@ -1010,5 +1010,6 @@ void BrowsingHistoryHandler::OnURLsDeleted(
}
void BrowsingHistoryHandler::OnWebHistoryDeleted() {
- web_ui()->CallJavascriptFunctionUnsafe("historyDeleted");
+ if (!has_pending_delete_request_)
msramek 2016/11/07 15:45:20 It's possible that OnWebHistoryDeleted() was calle
+ web_ui()->CallJavascriptFunctionUnsafe("historyDeleted");
}
« no previous file with comments | « chrome/browser/ui/webui/browsing_history_handler.h ('k') | chrome/browser/ui/webui/browsing_history_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698