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

Issue 1838333004: Add a notice about other forms of browsing history to the History WebUI. (Closed)

Created:
4 years, 8 months ago by msramek
Modified:
4 years, 8 months ago
CC:
chromium-reviews, Patrick Dubroy, dbeam+watch-history_chromium.org, pam+watch_chromium.org, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@desktop-ui-after-rebase
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a notice about other forms of browsing history to the History WebUI. Background: Design doc: https://docs.google.com/document/d/1ZMDSAd44KmzKhqXPjobZOf9rZezs6VqiBnqpDD0auCU/ Mocks: https://docs.google.com/presentation/d/1rpR3xB3aYFzXD0U--piuMq3y4XAmoYdawA2HC1cuEjM/ We expand the existing notification that shows whether there are synced history results. For users who have other forms of browsing history, we add one more sentence informing them about this fact. The call to find out about the existence of other forms of browsing history is asynchronous, just like the call to get web history results. There are two outcomes: 1. Web history results arrive first. We have to pass the results to the frontend immediately, which also shows the first sentence of the notification about synced results. When the ping for other forms of browsing history returns, we may or may not show the second sentence according to the response. 2. The ping for other forms of history returns first. We show the notification saying that there are no synced results, but there are other forms of browsing history. When the web history results arrive, we update the first sentence of the notification accordingly. To make this simple, we keep the the booleans (one for each sentence) in BrowsingHistoryHandler, and then call a single JS method that refreshes the notification according to their state. Furthermore, to match the mocks, we update the logic on whether or not the notification should float beside the editing controls. If the notification contains only a single sentence and it fits, it can float; otherwise, it must be moved under the editing controls. The current logic in CSS only changes the notification bar from float: right to float: left. However, in the case when the notification contains two sentences, but still fits beside the editing controls, this is not enough; the first sentence could still float beside editing controls. We must therefore also set float: none on them. To do that, we replace the 'alone' class on the notification bar with an 'overflow' class on top controls, so that we can influence the behavior of both notification bar and editing controls. BUG=595332 Committed: https://crrev.com/5872007bbf986d490d45212060d31b101f2cc281 Cr-Commit-Position: refs/heads/master@{#384903}

Patch Set 1 : #

Patch Set 2 : Build files. #

Patch Set 3 : Moved build dependencies to OS!=iOS #

Total comments: 18

Patch Set 4 : Addressed comments. #

Patch Set 5 : Android, Tests #

Patch Set 6 : Accessibility test #

Total comments: 2

Patch Set 7 : Update strings. #

Patch Set 8 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -22 lines) Patch
M chrome/browser/resources/history/history.css View 1 2 3 4 2 chunks +14 lines, -2 lines 0 comments Download
M chrome/browser/resources/history/history.js View 1 2 3 4 4 chunks +46 lines, -14 lines 0 comments Download
M chrome/browser/resources/history/history_mobile.css View 1 2 3 4 4 chunks +19 lines, -2 lines 0 comments Download
M chrome/browser/resources/md_history/history.js View 1 2 3 4 5 6 7 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/browsing_history_handler.h View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/browsing_history_handler.cc View 1 2 3 6 chunks +28 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/history_ui.cc View 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/test/data/webui/history_browsertest.js View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M components/history_strings.grdp View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
msramek
Hi Dan and Jackie, please have a look! This is similar to https://codereview.chromium.org/1813023002/, but on ...
4 years, 8 months ago (2016-03-30 13:54:16 UTC) #3
msramek
Ah, I forgot why I didn't upload this CL earlier, and that was because I ...
4 years, 8 months ago (2016-03-30 15:14:32 UTC) #5
Jackie Quinn
On 2016/03/30 15:14:32, msramek wrote: > Ah, I forgot why I didn't upload this CL ...
4 years, 8 months ago (2016-03-30 15:18:04 UTC) #6
msramek
On 2016/03/30 15:18:04, Jackie Quinn wrote: > On 2016/03/30 15:14:32, msramek wrote: > > Ah, ...
4 years, 8 months ago (2016-03-30 15:47:07 UTC) #7
Dan Beam
https://codereview.chromium.org/1838333004/diff/60001/chrome/browser/resources/history/history.css File chrome/browser/resources/history/history.css (right): https://codereview.chromium.org/1838333004/diff/60001/chrome/browser/resources/history/history.css#newcode51 chrome/browser/resources/history/history.css:51: margin: 1em 0 1em 0; margin: 1em 0; https://codereview.chromium.org/1838333004/diff/60001/chrome/browser/resources/history/history.js ...
4 years, 8 months ago (2016-03-31 01:05:44 UTC) #8
msramek
Thanks, Dan! PTAL! https://codereview.chromium.org/1838333004/diff/60001/chrome/browser/resources/history/history.css File chrome/browser/resources/history/history.css (right): https://codereview.chromium.org/1838333004/diff/60001/chrome/browser/resources/history/history.css#newcode51 chrome/browser/resources/history/history.css:51: margin: 1em 0 1em 0; On ...
4 years, 8 months ago (2016-03-31 19:20:02 UTC) #9
msramek
We're now matching mocks on both Desktop and Android, and the tests are green. PTAL! ...
4 years, 8 months ago (2016-04-01 15:05:57 UTC) #10
Dan Beam
lgtm but I wish we weren't adding more uses of innerHTML https://codereview.chromium.org/1838333004/diff/120001/chrome/browser/resources/history/history.css File chrome/browser/resources/history/history.css (right): ...
4 years, 8 months ago (2016-04-01 15:32:18 UTC) #11
msramek
In the last patchset, I just updated the string in history_strings.grdp, as the specification changed ...
4 years, 8 months ago (2016-04-04 10:03:46 UTC) #13
blundell
lgtm
4 years, 8 months ago (2016-04-04 10:04:31 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1838333004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1838333004/160001
4 years, 8 months ago (2016-04-04 13:23:13 UTC) #17
commit-bot: I haz the power
Committed patchset #8 (id:160001)
4 years, 8 months ago (2016-04-04 14:35:00 UTC) #19
commit-bot: I haz the power
4 years, 8 months ago (2016-04-04 14:36:24 UTC) #21
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/5872007bbf986d490d45212060d31b101f2cc281
Cr-Commit-Position: refs/heads/master@{#384903}

Powered by Google App Engine
This is Rietveld 408576698