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

Issue 795483004: In Bookmark manager 'Add page' and 'Add Folder' always add new page or folder at the end. (Closed)

Created:
6 years ago by Deepak
Modified:
5 years, 11 months ago
CC:
chromium-reviews, tfarina, noyau+watch_chromium.org, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

In Bookmark manager 'Add page' and 'Add Folder' always add new page or folder at the end. 1.When we add new page or new folder after selecting some page bookmarked entry in Bookmark manager, then new item should be added immediately below the selected item. 2.when we add new page or new folder after selecting some folder bookmarked entry in Bookmark manager, then new item should be added as last item inside selected folder. 3.when we add new page or new folder without selecting any bookmarked entry in Bookmark manager, then new item should be added in the last of already existing bookmarked entries. Added code in addPage() and newFolder() in main.js for getting the index of new node to be added so that it will be at proper location. BUG=409816 Committed: https://crrev.com/829809ec98802b1d19d8f1793d90079833899560 Cr-Commit-Position: refs/heads/master@{#310719}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Addressing review comments. #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Total comments: 2

Patch Set 6 : Changes as per review comments. #

Total comments: 2

Patch Set 7 : Changes as per review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -9 lines) Patch
M chrome/browser/resources/bookmark_manager/js/main.js View 1 2 3 4 5 6 3 chunks +24 lines, -9 lines 0 comments Download

Messages

Total messages: 19 (4 generated)
Deepak
@xiyuan PTAL at my changes.
6 years ago (2014-12-20 13:27:08 UTC) #2
Bernhard Bauer
Your CL description states the current wrong behavior. That is context that is best placed ...
6 years ago (2014-12-22 11:58:21 UTC) #4
Deepak
PTAL https://codereview.chromium.org/795483004/diff/1/chrome/browser/resources/bookmark_manager/js/main.js File chrome/browser/resources/bookmark_manager/js/main.js (right): https://codereview.chromium.org/795483004/diff/1/chrome/browser/resources/bookmark_manager/js/main.js#newcode1032 chrome/browser/resources/bookmark_manager/js/main.js:1032: var newIndex = ''; On 2014/12/22 11:58:20, Bernhard ...
5 years, 12 months ago (2014-12-23 04:27:48 UTC) #5
Bernhard Bauer
On 2014/12/22 11:58:21, Bernhard Bauer wrote: > Your CL description states the current wrong behavior. ...
5 years, 12 months ago (2014-12-23 11:54:37 UTC) #6
Deepak
On 2014/12/23 11:54:37, Bernhard Bauer wrote: > On 2014/12/22 11:58:21, Bernhard Bauer wrote: > > ...
5 years, 12 months ago (2014-12-23 12:43:02 UTC) #7
Deepak
PTAL at new changes. https://codereview.chromium.org/795483004/diff/60001/chrome/browser/resources/bookmark_manager/js/main.js File chrome/browser/resources/bookmark_manager/js/main.js (right): https://codereview.chromium.org/795483004/diff/60001/chrome/browser/resources/bookmark_manager/js/main.js#newcode1032 chrome/browser/resources/bookmark_manager/js/main.js:1032: var newIndex, selectedItem = bmm.list.selectedItem; ...
5 years, 12 months ago (2014-12-23 12:43:23 UTC) #8
Deepak
PTAL.
5 years, 11 months ago (2015-01-07 07:00:15 UTC) #9
xiyuan
Looks mostly good to me. But +arv to vet on the correctness of the CL ...
5 years, 11 months ago (2015-01-07 17:14:03 UTC) #11
Deepak
@xiyuan PTAL. https://codereview.chromium.org/795483004/diff/80001/chrome/browser/resources/bookmark_manager/js/main.js File chrome/browser/resources/bookmark_manager/js/main.js (right): https://codereview.chromium.org/795483004/diff/80001/chrome/browser/resources/bookmark_manager/js/main.js#newcode1060 chrome/browser/resources/bookmark_manager/js/main.js:1060: index = newIndex; On 2015/01/07 17:14:03, xiyuan ...
5 years, 11 months ago (2015-01-08 13:41:13 UTC) #12
xiyuan
https://codereview.chromium.org/795483004/diff/100001/chrome/browser/resources/bookmark_manager/js/main.js File chrome/browser/resources/bookmark_manager/js/main.js (right): https://codereview.chromium.org/795483004/diff/100001/chrome/browser/resources/bookmark_manager/js/main.js#newcode1062 chrome/browser/resources/bookmark_manager/js/main.js:1062: index = newIndex; I think we can replace line ...
5 years, 11 months ago (2015-01-08 17:31:37 UTC) #13
Deepak
@xiyuan Thanks for review and suggestion. Changes done. PTAL. https://codereview.chromium.org/795483004/diff/100001/chrome/browser/resources/bookmark_manager/js/main.js File chrome/browser/resources/bookmark_manager/js/main.js (right): https://codereview.chromium.org/795483004/diff/100001/chrome/browser/resources/bookmark_manager/js/main.js#newcode1062 chrome/browser/resources/bookmark_manager/js/main.js:1062: ...
5 years, 11 months ago (2015-01-09 04:20:07 UTC) #14
xiyuan
lgtm
5 years, 11 months ago (2015-01-09 04:55:43 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/795483004/120001
5 years, 11 months ago (2015-01-09 05:11:05 UTC) #17
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 11 months ago (2015-01-09 06:42:18 UTC) #18
commit-bot: I haz the power
5 years, 11 months ago (2015-01-09 06:43:08 UTC) #19
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/829809ec98802b1d19d8f1793d90079833899560
Cr-Commit-Position: refs/heads/master@{#310719}

Powered by Google App Engine
This is Rietveld 408576698