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

Issue 2299133002: Make BrowsingDataHandler observe WebHistoryService deletions (Closed)

Created:
4 years, 3 months ago by msramek
Modified:
4 years, 3 months ago
Reviewers:
tsergeant, lshang, Dan Beam, sky
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2840
Project:
chromium
Visibility:
Public.

Description

Make BrowsingDataHandler observe WebHistoryService deletions BrowsingDataHandler observes local history deletions, but not synced history deletions. In cases where there are no local history entries to delete, it can happen that the history page does not reload and it looks as if the deletion failed. See https://docs.google.com/document/d/1Fd6CdBf6UMbYbkwSjEKyFOxew0Xid5IaT-QwnFchjig/ for background. This CL 1. Adds an Observer subclass to the WebHistoryService. 2. Registers BrowsingHistoryHandler as a WebHistoryService::Observer; and since WebHistoryService's existence is based on whether history sync is enabled, we also register as a SyncServiceObserver. 3. Adds a test to browsing_history_handler_unittest.cc. Also tested manually on Android - seems to solve the problem described in the above mentioned document. TBR=tsergeant@chromium.org,lshang@chromium.org,sky@chromium.org,dbeam@chromium.org BUG=604114, 630164 Review-Url: https://codereview.chromium.org/2263613002 Cr-Commit-Position: refs/heads/master@{#414679} (cherry picked from commit d39070b1ac01776e5a3800a9ef55fe43dce74225) Committed: https://chromium.googlesource.com/chromium/src/+/8ce19cc272209840e306fde7485e5bc6f34432bb

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+297 lines, -17 lines) Patch
M chrome/browser/ui/webui/browsing_history_handler.h View 5 chunks +24 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/browsing_history_handler.cc View 5 chunks +38 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/browsing_history_handler_unittest.cc View 4 chunks +168 lines, -1 line 0 comments Download
M components/history/core/browser/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M components/history/core/browser/web_history_service.h View 4 chunks +9 lines, -0 lines 0 comments Download
M components/history/core/browser/web_history_service.cc View 4 chunks +18 lines, -1 line 0 comments Download
A components/history/core/browser/web_history_service_observer.h View 1 chunk +27 lines, -0 lines 0 comments Download
M components/history/core/test/fake_web_history_service.cc View 3 chunks +12 lines, -9 lines 0 comments Download

Messages

Total messages: 3 (1 generated)
msramek
Committed patchset #1 (id:1) manually as 8ce19cc272209840e306fde7485e5bc6f34432bb.
4 years, 3 months ago (2016-09-01 09:13:04 UTC) #2
msramek
4 years, 3 months ago (2016-09-01 09:15:14 UTC) #3
Message was sent while issue was closed.
Reviewers of the old CL (https://codereview.chromium.org/2263613002) FYI: I have
merged this back to M54.

Powered by Google App Engine
This is Rietveld 408576698