This repository has been archived by the owner on Apr 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Query the existence other forms of browsing history.
This CL implements the query for other forms of browsing history, which is necessary to show the notices in the Clear Browsing Data dialog on all platforms. Previously, the query was represented by a dummy method WebHistoryService::HasOtherFormsOfBrowsingHistory(), but now we have an actual endpoint on the Sync server to answer the query. More detailed description of the change: 1. sync/protocol/ Adapt history_status.proto from cl/122116426 and add it to Chromium code. 2. components/history/ Replace the dummy method WebHistoryService::HasOtherFormsOfBrowsingHistory() with the actual request QueryOtherFormsOfBrowsingHistory(). We use most of the existing WebHistoryService insfrastructure, but ReadResponse is replaced by MessageLite::ParseFromString() since we're receiving a protobuf. Furthermore, the query URL is not static, as in other WebHistoryService calls, but has to be generated from the browser user agent and channel. 3. components/browsing_data_ui/ Update the logic to include calls to QueryOtherFormsOfBrowsingHistory(). This call and QueryWebAndAppActivity() call should run in parallel to save time, since they are both HTTP requests. 4. chrome/ Provide the user agent string and the channel info from the Desktop and Android callsites (iOS is in a different codebase) BUG=614652 [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected] Review-Url: https://codereview.chromium.org/1983073002 Cr-Commit-Position: refs/heads/master@{#395894} (cherry picked from commit 6d43c19) Review URL: https://codereview.chromium.org/2087883002 . Cr-Commit-Position: refs/branch-heads/2743@{#432} Cr-Branched-From: 2b3ae3b-refs/heads/master@{#394939}
- Loading branch information
Showing
20 changed files
with
600 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
include_rules = [ | ||
"+components/history/core/browser", | ||
"+components/browser_sync/browser", | ||
"+components/history/core/browser", | ||
"+components/history/core/test", | ||
"+components/signin", | ||
"+components/sync_driver", | ||
"+components/version_info", | ||
"+sync/internal_api/public", | ||
"+net", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.