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

Issue 1983073002: Query the existence other forms of browsing history. (Closed)

Created:
4 years, 7 months ago by msramek
Modified:
4 years, 7 months ago
CC:
albertb+watch_chromium.org, blundell+watchlist_chromium.org, chromium-reviews, dbeam+watch-options_chromium.org, droger+watchlist_chromium.org, michaelpg+watch-options_chromium.org, sdefresne+watchlist_chromium.org, sync-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 TBR=dbeam@chromium.org,dfalcantara@chromium.org Committed: https://crrev.com/6d43c1934d9a3a090e16a1346a2ada29b7e1a86c Cr-Commit-Position: refs/heads/master@{#395894}

Patch Set 1 : #

Total comments: 29

Patch Set 2 : Addressed comments. #

Total comments: 6

Patch Set 3 : Addressed comments, fixed bots #

Patch Set 4 : Wrong include in pref_service_bridge #

Total comments: 2

Patch Set 5 : Addressed comments, re-added protobuf #

Total comments: 21

Patch Set 6 : #

Patch Set 7 : Rebase #

Patch Set 8 : Forgot one callsite #

Total comments: 6

Patch Set 9 : Addressed comments. #

Total comments: 2

Patch Set 10 : Nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+600 lines, -49 lines) Patch
M chrome/browser/android/preferences/pref_service_bridge.cc View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/clear_browser_data_handler.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M components/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M components/browsing_data_ui.gypi View 1 1 chunk +2 lines, -1 line 0 comments Download
M components/browsing_data_ui/BUILD.gn View 1 2 1 chunk +21 lines, -1 line 0 comments Download
M components/browsing_data_ui/DEPS View 1 1 chunk +7 lines, -1 line 0 comments Download
M components/browsing_data_ui/history_notice_utils.h View 1 2 3 4 5 2 chunks +24 lines, -6 lines 0 comments Download
M components/browsing_data_ui/history_notice_utils.cc View 1 2 3 4 5 6 7 8 9 3 chunks +85 lines, -6 lines 0 comments Download
A components/browsing_data_ui/history_notice_utils_unittest.cc View 1 2 3 4 5 6 7 1 chunk +187 lines, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 4 chunks +6 lines, -1 line 0 comments Download
M components/history.gypi View 1 chunk +1 line, -0 lines 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 1 2 3 4 5 6 chunks +27 lines, -1 line 0 comments Download
M components/history/core/browser/web_history_service.cc View 1 2 3 4 5 6 7 8 11 chunks +99 lines, -11 lines 0 comments Download
M components/history/core/browser/web_history_service_unittest.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M components/history/core/test/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/history/core/test/fake_web_history_service.h View 1 3 chunks +15 lines, -5 lines 0 comments Download
M components/history/core/test/fake_web_history_service.cc View 1 2 3 4 5 8 chunks +90 lines, -16 lines 0 comments Download
A sync/protocol/history_status.proto View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
M sync/protocol/protocol.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 43 (16 generated)
msramek
Hi guys, Can you have a look? The CL is more-or-less complete, but I haven't ...
4 years, 7 months ago (2016-05-17 12:31:04 UTC) #5
pavely
https://codereview.chromium.org/1983073002/diff/20001/components/history/core/browser/web_history_service.cc File components/history/core/browser/web_history_service.cc (right): https://codereview.chromium.org/1983073002/diff/20001/components/history/core/browser/web_history_service.cc#newcode486 components/history/core/browser/web_history_service.cc:486: GetSyncServiceURL(*base::CommandLine::ForCurrentProcess(), channel); Could you confirm with Kevin that this ...
4 years, 7 months ago (2016-05-17 22:56:48 UTC) #6
msarda
I only reviewed the changes in components/browsing_data_ui/history_notice_utils*. Some nits and a comment. https://codereview.chromium.org/1983073002/diff/20001/components/browsing_data_ui/history_notice_utils.cc File components/browsing_data_ui/history_notice_utils.cc ...
4 years, 7 months ago (2016-05-18 08:58:08 UTC) #7
sdefresne
https://codereview.chromium.org/1983073002/diff/20001/components/browsing_data_ui/history_notice_utils.cc File components/browsing_data_ui/history_notice_utils.cc (right): https://codereview.chromium.org/1983073002/diff/20001/components/browsing_data_ui/history_notice_utils.cc#newcode15 components/browsing_data_ui/history_notice_utils.cc:15: class MergeTwoBooleanCallbacks { +1 https://codereview.chromium.org/1983073002/diff/20001/components/browsing_data_ui/history_notice_utils.cc#newcode26 components/browsing_data_ui/history_notice_utils.cc:26: if (++callbacks_ == ...
4 years, 7 months ago (2016-05-18 14:29:41 UTC) #8
msarda
https://codereview.chromium.org/1983073002/diff/20001/components/browsing_data_ui/history_notice_utils.h File components/browsing_data_ui/history_notice_utils.h (right): https://codereview.chromium.org/1983073002/diff/20001/components/browsing_data_ui/history_notice_utils.h#newcode51 components/browsing_data_ui/history_notice_utils.h:51: const version_info::Channel channel, On 2016/05/18 14:29:41, sdefresne wrote: > ...
4 years, 7 months ago (2016-05-18 14:32:54 UTC) #9
sdefresne
On 2016/05/18 14:32:54, msarda wrote: > https://codereview.chromium.org/1983073002/diff/20001/components/browsing_data_ui/history_notice_utils.h > File components/browsing_data_ui/history_notice_utils.h (right): > > https://codereview.chromium.org/1983073002/diff/20001/components/browsing_data_ui/history_notice_utils.h#newcode51 > ...
4 years, 7 months ago (2016-05-18 14:33:45 UTC) #10
msramek
I addressed comments and added a test for the browsing_data_ui/ component. PTAL! https://codereview.chromium.org/1983073002/diff/20001/components/browsing_data_ui/history_notice_utils.cc File components/browsing_data_ui/history_notice_utils.cc ...
4 years, 7 months ago (2016-05-18 19:38:37 UTC) #11
msramek
+cbentzel@, can you please review adding "+net" to components/browsing_data_ui/DEPS? It's needed in the unittest to ...
4 years, 7 months ago (2016-05-18 19:41:55 UTC) #13
sdefresne
Didn't have time for a second look, just wanted to reply to one of your ...
4 years, 7 months ago (2016-05-18 19:42:39 UTC) #14
msarda
LGTM with nits for for components/browsing_data_ui/history_notice_utils.* https://codereview.chromium.org/1983073002/diff/40001/components/browsing_data_ui/history_notice_utils_unittest.cc File components/browsing_data_ui/history_notice_utils_unittest.cc (right): https://codereview.chromium.org/1983073002/diff/40001/components/browsing_data_ui/history_notice_utils_unittest.cc#newcode90 components/browsing_data_ui/history_notice_utils_unittest.cc:90: got_result_ = false; ...
4 years, 7 months ago (2016-05-19 13:35:44 UTC) #15
pavely
sync/ lgtm
4 years, 7 months ago (2016-05-19 18:09:18 UTC) #16
msramek
I addressed the comments, and also fixed the red bots: - missing direct deps in ...
4 years, 7 months ago (2016-05-19 19:47:40 UTC) #19
cbentzel
net/ DEPS LGTM
4 years, 7 months ago (2016-05-22 15:56:31 UTC) #20
msarda
https://codereview.chromium.org/1983073002/diff/120001/components/browsing_data_ui/history_notice_utils.h File components/browsing_data_ui/history_notice_utils.h (right): https://codereview.chromium.org/1983073002/diff/120001/components/browsing_data_ui/history_notice_utils.h#newcode50 components/browsing_data_ui/history_notice_utils.h:50: void ShouldPopupDialogAboutOtherFormsOfBrowsingHistory( I just realized this. Please keep the ...
4 years, 7 months ago (2016-05-23 12:37:21 UTC) #21
msramek
I tested this together with kevinliu@ and debugged the communication with the Sync server. It ...
4 years, 7 months ago (2016-05-23 19:18:12 UTC) #24
chromium-reviews
LGTM on the proto file On Mon, May 23, 2016 at 12:18 PM, <msramek@chromium.org> wrote: ...
4 years, 7 months ago (2016-05-23 23:36:18 UTC) #25
sdefresne
lg https://codereview.chromium.org/1983073002/diff/160001/components/browsing_data_ui/history_notice_utils.cc File components/browsing_data_ui/history_notice_utils.cc (right): https://codereview.chromium.org/1983073002/diff/160001/components/browsing_data_ui/history_notice_utils.cc#newcode122 components/browsing_data_ui/history_notice_utils.cc:122: false /* !history_service->HasOtherFormsOfBrowsingHistory() */)) { Can you remove ...
4 years, 7 months ago (2016-05-24 08:32:29 UTC) #26
msarda
LGTM for components/browsing_data_ui/history_notice_utils.*
4 years, 7 months ago (2016-05-24 08:37:31 UTC) #27
msramek
Thanks! I addressed the comments and rebased. PTAL! https://codereview.chromium.org/1983073002/diff/160001/components/browsing_data_ui/history_notice_utils.cc File components/browsing_data_ui/history_notice_utils.cc (right): https://codereview.chromium.org/1983073002/diff/160001/components/browsing_data_ui/history_notice_utils.cc#newcode122 components/browsing_data_ui/history_notice_utils.cc:122: false ...
4 years, 7 months ago (2016-05-24 12:03:00 UTC) #28
pavely
lgtm with couple of comments. https://codereview.chromium.org/1983073002/diff/220001/components/history/core/browser/web_history_service.cc File components/history/core/browser/web_history_service.cc (right): https://codereview.chromium.org/1983073002/diff/220001/components/history/core/browser/web_history_service.cc#newcode517 components/history/core/browser/web_history_service.cc:517: browser_sync::LocalDeviceInfoProviderImpl local_device_info_provider_( Instantiating LocalDeviceInfoProviderImpl ...
4 years, 7 months ago (2016-05-24 22:05:04 UTC) #29
msramek
I have addressed the comments, and also updated the bug number (I'll need a separate ...
4 years, 7 months ago (2016-05-25 08:53:44 UTC) #31
sdefresne
lgtm https://codereview.chromium.org/1983073002/diff/240001/components/browsing_data_ui/history_notice_utils.cc File components/browsing_data_ui/history_notice_utils.cc (right): https://codereview.chromium.org/1983073002/diff/240001/components/browsing_data_ui/history_notice_utils.cc#newcode29 components/browsing_data_ui/history_notice_utils.cc:29: call_count_(0) { nit: I think this should be ...
4 years, 7 months ago (2016-05-25 13:48:09 UTC) #32
msramek
Thank you! I'm adding dbeam@ and dfalcantara@ as TBR, since I'm only updating callsites on ...
4 years, 7 months ago (2016-05-25 14:55:43 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1983073002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1983073002/260001
4 years, 7 months ago (2016-05-25 14:56:11 UTC) #38
sdefresne
On 2016/05/25 at 14:55:43, msramek wrote: > Thank you! > > I'm adding dbeam@ and ...
4 years, 7 months ago (2016-05-25 15:07:47 UTC) #39
commit-bot: I haz the power
Committed patchset #10 (id:260001)
4 years, 7 months ago (2016-05-25 15:46:14 UTC) #41
commit-bot: I haz the power
4 years, 7 months ago (2016-05-25 15:48:11 UTC) #43
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/6d43c1934d9a3a090e16a1346a2ada29b7e1a86c
Cr-Commit-Position: refs/heads/master@{#395894}

Powered by Google App Engine
This is Rietveld 408576698