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

Issue 2812493002: MD Bookmarks: Restore any previously selected folder when clearing search (Closed)

Created:
3 years, 8 months ago by tsergeant
Modified:
3 years, 8 months ago
Reviewers:
calamity
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, michaelpg+watch-md-ui_chromium.org, arv+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Bookmarks: Restore any previously selected folder when clearing search With this change, clearing a search in the MD Bookmarks manager will restore the folder that was selected before the search was started. There is no other change to URL routing or page UI while a search is active. To achieve this, the |state.selectedFolder| variable is never set to null -- it is now always set to the most recently selected folder. BUG=697706 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2812493002 Cr-Commit-Position: refs/heads/master@{#463553} Committed: https://chromium.googlesource.com/chromium/src/+/b466a02f6480a6f2823b823fc69f4f693377863e

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -26 lines) Patch
M chrome/browser/resources/md_bookmarks/folder_node.js View 3 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/reducers.js View 2 chunks +2 lines, -8 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/types.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/md_bookmarks/util.js View 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/test/data/webui/md_bookmarks/reducers_test.js View 1 3 chunks +13 lines, -9 lines 0 comments Download
M chrome/test/data/webui/md_bookmarks/router_test.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/webui/md_bookmarks/sidebar_test.js View 1 chunk +21 lines, -1 line 0 comments Download

Messages

Total messages: 15 (10 generated)
tsergeant
As requested. The selected folder doesn't show up in the url when a search is ...
3 years, 8 months ago (2017-04-10 05:01:57 UTC) #5
calamity
lgtm. https://codereview.chromium.org/2812493002/diff/1/chrome/test/data/webui/md_bookmarks/reducers_test.js File chrome/test/data/webui/md_bookmarks/reducers_test.js (right): https://codereview.chromium.org/2812493002/diff/1/chrome/test/data/webui/md_bookmarks/reducers_test.js#newcode389 chrome/test/data/webui/md_bookmarks/reducers_test.js:389: // UI changes once search results arrive: micro-nit: ...
3 years, 8 months ago (2017-04-11 05:05:09 UTC) #8
tsergeant
https://codereview.chromium.org/2812493002/diff/1/chrome/test/data/webui/md_bookmarks/reducers_test.js File chrome/test/data/webui/md_bookmarks/reducers_test.js (right): https://codereview.chromium.org/2812493002/diff/1/chrome/test/data/webui/md_bookmarks/reducers_test.js#newcode389 chrome/test/data/webui/md_bookmarks/reducers_test.js:389: // UI changes once search results arrive: On 2017/04/11 ...
3 years, 8 months ago (2017-04-11 05:30:32 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2812493002/20001
3 years, 8 months ago (2017-04-11 05:31:02 UTC) #12
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 06:30:07 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/b466a02f6480a6f2823b823fc69f...

Powered by Google App Engine
This is Rietveld 408576698