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

Issue 446003002: Title: Same Bookmark url is getting pasted on the Bookmarkbar with same title. (Closed)

Created:
6 years, 4 months ago by Deepak
Modified:
6 years, 2 months ago
Reviewers:
tfarina, sky
CC:
chromium-reviews, tfarina, lgombos
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Same Bookmark url is getting pasted on the Bookmarkbar with same title. When I have bookmarked a page and copy paste that Bookmark in the bookmark bar then bookmark is getting pasted with the same title. Changes have been done so that when we paste bookmark in the bookmark bar or in the folder that already have that bookmark then new bookmark will get added with modified title. For example: "Autofill" bookmark is present in the BookmarkBar and user copy it and pasted it again in the Bookmark Bar then new entry will get added as "Autofill(1)", so that user know it is copy of the existing Bookmark. BUG=400682 R=sky@chromium.org Committed: https://crrev.com/33164f770ae372ab34060bec75ef7a4bbfba1607 Cr-Commit-Position: refs/heads/master@{#299680}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Changes done as per reviewer comments. #

Total comments: 7

Patch Set 3 : Changes done as per comments and mentioned reason for functions usage. #

Total comments: 1

Patch Set 4 : changes as per review comments #

Patch Set 5 : Changes as per review comments and test case added. #

Total comments: 11

Patch Set 6 : Changes as per review comments. #

Patch Set 7 : Changing vector to hash_set as suggested. #

Total comments: 4

Patch Set 8 : Changes as per Review comments. #

Patch Set 9 : removing changes from header file. #

Total comments: 10

Patch Set 10 : Changes as per review comments. #

Total comments: 8

Patch Set 11 : Changes as per review comments. #

Patch Set 12 : TestCase update. #

Total comments: 4

Patch Set 13 : Changes as per review comments. #

Total comments: 2

Patch Set 14 : Changes as per review comments. #

Total comments: 2

Patch Set 15 : Changes as per review comments. #

Patch Set 16 : changes as per review comments. #

Total comments: 2

Patch Set 17 : Addressed a nit. #

Patch Set 18 : #

Patch Set 19 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -2 lines) Patch
M chrome/test/data/extensions/api_test/bookmark_manager/standard/test.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +2 lines, -2 lines 0 comments Download
M components/bookmarks/browser/bookmark_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +42 lines, -0 lines 0 comments Download
M components/bookmarks/browser/bookmark_utils_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +36 lines, -0 lines 0 comments Download

Messages

Total messages: 64 (8 generated)
Deepak
PTAL
6 years, 4 months ago (2014-08-06 14:23:36 UTC) #1
tfarina
You only need a single reviewer for this. Also you don't need to write "Title:" ...
6 years, 4 months ago (2014-08-06 16:07:25 UTC) #2
Deepak
PTAL
6 years, 4 months ago (2014-08-09 14:53:11 UTC) #3
Deepak
Please review..
6 years, 4 months ago (2014-08-11 13:05:17 UTC) #4
Deepak
Please review this patch.
6 years, 4 months ago (2014-08-13 08:46:28 UTC) #5
tfarina
I'll let Scott judge the correctness of your algorithm. https://codereview.chromium.org/446003002/diff/1/components/bookmarks/browser/bookmark_model.h File components/bookmarks/browser/bookmark_model.h (right): https://codereview.chromium.org/446003002/diff/1/components/bookmarks/browser/bookmark_model.h#newcode172 components/bookmarks/browser/bookmark_model.h:172: ...
6 years, 4 months ago (2014-08-13 13:40:52 UTC) #6
Deepak
Changes done as per reviewer's comments. PTAL https://codereview.chromium.org/446003002/diff/1/components/bookmarks/browser/bookmark_model.h File components/bookmarks/browser/bookmark_model.h (right): https://codereview.chromium.org/446003002/diff/1/components/bookmarks/browser/bookmark_model.h#newcode172 components/bookmarks/browser/bookmark_model.h:172: const base::string16 ...
6 years, 4 months ago (2014-08-14 02:54:50 UTC) #7
Deepak
PTAL
6 years, 4 months ago (2014-08-16 11:27:41 UTC) #8
sky
https://codereview.chromium.org/446003002/diff/20001/components/bookmarks/browser/bookmark_model.cc File components/bookmarks/browser/bookmark_model.cc (right): https://codereview.chromium.org/446003002/diff/20001/components/bookmarks/browser/bookmark_model.cc#newcode510 components/bookmarks/browser/bookmark_model.cc:510: void BookmarkModel::GetNodesByURLAndTitle( There is no reason for this in ...
6 years, 4 months ago (2014-08-18 16:15:21 UTC) #9
Deepak
https://codereview.chromium.org/446003002/diff/20001/components/bookmarks/browser/bookmark_model.cc File components/bookmarks/browser/bookmark_model.cc (right): https://codereview.chromium.org/446003002/diff/20001/components/bookmarks/browser/bookmark_model.cc#newcode510 components/bookmarks/browser/bookmark_model.cc:510: void BookmarkModel::GetNodesByURLAndTitle( On 2014/08/18 16:15:21, sky wrote: > There ...
6 years, 4 months ago (2014-08-19 11:42:19 UTC) #10
sky
https://codereview.chromium.org/446003002/diff/20001/components/bookmarks/browser/bookmark_model.cc File components/bookmarks/browser/bookmark_model.cc (right): https://codereview.chromium.org/446003002/diff/20001/components/bookmarks/browser/bookmark_model.cc#newcode510 components/bookmarks/browser/bookmark_model.cc:510: void BookmarkModel::GetNodesByURLAndTitle( On 2014/08/19 11:42:19, deepak.m1 wrote: > On ...
6 years, 4 months ago (2014-08-19 16:38:31 UTC) #11
Deepak
On 2014/08/19 16:38:31, sky wrote: > https://codereview.chromium.org/446003002/diff/20001/components/bookmarks/browser/bookmark_model.cc > File components/bookmarks/browser/bookmark_model.cc (right): > > https://codereview.chromium.org/446003002/diff/20001/components/bookmarks/browser/bookmark_model.cc#newcode510 > ...
6 years, 4 months ago (2014-08-20 04:37:54 UTC) #12
Deepak
On 2014/08/20 04:37:54, deepak.m1 wrote: > On 2014/08/19 16:38:31, sky wrote: > > > https://codereview.chromium.org/446003002/diff/20001/components/bookmarks/browser/bookmark_model.cc ...
6 years, 3 months ago (2014-08-28 09:52:51 UTC) #13
Deepak
On 2014/08/28 09:52:51, deepak.m1 wrote: > On 2014/08/20 04:37:54, deepak.m1 wrote: > > On 2014/08/19 ...
6 years, 3 months ago (2014-09-08 14:25:39 UTC) #16
Deepak
PTAL
6 years, 3 months ago (2014-09-22 05:55:05 UTC) #18
sky
You need to add test coverage too. https://codereview.chromium.org/446003002/diff/40001/components/bookmarks/browser/bookmark_model.h File components/bookmarks/browser/bookmark_model.h (right): https://codereview.chromium.org/446003002/diff/40001/components/bookmarks/browser/bookmark_model.h#newcode171 components/bookmarks/browser/bookmark_model.h:171: void GetNodesByURLAndTitle(const ...
6 years, 3 months ago (2014-09-22 16:40:52 UTC) #19
Deepak
On 2014/09/22 16:40:52, sky wrote: > You need to add test coverage too. > > ...
6 years, 3 months ago (2014-09-23 12:44:58 UTC) #20
Deepak
On 2014/09/23 12:44:58, deepak.m1 wrote: > On 2014/09/22 16:40:52, sky wrote: > > You need ...
6 years, 3 months ago (2014-09-24 14:14:56 UTC) #21
sky
https://codereview.chromium.org/446003002/diff/80001/components/bookmarks/browser/bookmark_utils.cc File components/bookmarks/browser/bookmark_utils.cc (right): https://codereview.chromium.org/446003002/diff/80001/components/bookmarks/browser/bookmark_utils.cc#newcode225 components/bookmarks/browser/bookmark_utils.cc:225: if (bookmark_data.elements.size() == 1 && Move this into a ...
6 years, 3 months ago (2014-09-24 14:26:49 UTC) #22
Deepak
On 2014/09/24 14:26:49, sky wrote: > https://codereview.chromium.org/446003002/diff/80001/components/bookmarks/browser/bookmark_utils.cc > File components/bookmarks/browser/bookmark_utils.cc (right): > > https://codereview.chromium.org/446003002/diff/80001/components/bookmarks/browser/bookmark_utils.cc#newcode225 > ...
6 years, 3 months ago (2014-09-25 05:58:59 UTC) #23
Deepak
PTAL https://codereview.chromium.org/446003002/diff/80001/components/bookmarks/browser/bookmark_utils.cc File components/bookmarks/browser/bookmark_utils.cc (right): https://codereview.chromium.org/446003002/diff/80001/components/bookmarks/browser/bookmark_utils.cc#newcode225 components/bookmarks/browser/bookmark_utils.cc:225: if (bookmark_data.elements.size() == 1 && On 2014/09/24 14:26:49, ...
6 years, 3 months ago (2014-09-25 05:59:11 UTC) #24
Deepak
PTAL
6 years, 2 months ago (2014-09-26 12:36:04 UTC) #25
sky
https://codereview.chromium.org/446003002/diff/80001/components/bookmarks/browser/bookmark_utils.cc File components/bookmarks/browser/bookmark_utils.cc (right): https://codereview.chromium.org/446003002/diff/80001/components/bookmarks/browser/bookmark_utils.cc#newcode228 components/bookmarks/browser/bookmark_utils.cc:228: std::vector<base::string16> titles; On 2014/09/25 05:59:11, Deepak wrote: > On ...
6 years, 2 months ago (2014-09-26 16:14:10 UTC) #26
Deepak
On 2014/09/26 16:14:10, sky wrote: > https://codereview.chromium.org/446003002/diff/80001/components/bookmarks/browser/bookmark_utils.cc > File components/bookmarks/browser/bookmark_utils.cc (right): > > https://codereview.chromium.org/446003002/diff/80001/components/bookmarks/browser/bookmark_utils.cc#newcode228 > ...
6 years, 2 months ago (2014-09-27 08:45:54 UTC) #27
Deepak
On 2014/09/27 08:45:54, Deepak wrote: > On 2014/09/26 16:14:10, sky wrote: > > > https://codereview.chromium.org/446003002/diff/80001/components/bookmarks/browser/bookmark_utils.cc ...
6 years, 2 months ago (2014-09-29 15:02:21 UTC) #28
sky
On 2014/09/29 15:02:21, Deepak wrote: > On 2014/09/27 08:45:54, Deepak wrote: > > On 2014/09/26 ...
6 years, 2 months ago (2014-09-29 17:59:00 UTC) #29
Deepak
On 2014/09/29 17:59:00, sky wrote: > On 2014/09/29 15:02:21, Deepak wrote: > > On 2014/09/27 ...
6 years, 2 months ago (2014-09-30 05:25:15 UTC) #30
sky
https://codereview.chromium.org/446003002/diff/120001/components/bookmarks/browser/bookmark_utils.cc File components/bookmarks/browser/bookmark_utils.cc (right): https://codereview.chromium.org/446003002/diff/120001/components/bookmarks/browser/bookmark_utils.cc#newcode209 components/bookmarks/browser/bookmark_utils.cc:209: BookmarkNodeData* bookmark_data) { BookmarkNodeData may contain any number of ...
6 years, 2 months ago (2014-09-30 15:45:17 UTC) #31
Deepak
Thanks for review. I have done changes as suggested. PTAL https://codereview.chromium.org/446003002/diff/120001/components/bookmarks/browser/bookmark_utils.cc File components/bookmarks/browser/bookmark_utils.cc (right): https://codereview.chromium.org/446003002/diff/120001/components/bookmarks/browser/bookmark_utils.cc#newcode209 ...
6 years, 2 months ago (2014-10-01 05:13:10 UTC) #32
sky
https://codereview.chromium.org/446003002/diff/160001/components/bookmarks/browser/bookmark_utils.cc File components/bookmarks/browser/bookmark_utils.cc (right): https://codereview.chromium.org/446003002/diff/160001/components/bookmarks/browser/bookmark_utils.cc#newcode213 components/bookmarks/browser/bookmark_utils.cc:213: const base::string16& title) { This should be a pointer ...
6 years, 2 months ago (2014-10-01 19:28:26 UTC) #33
Deepak
PTAL https://codereview.chromium.org/446003002/diff/160001/components/bookmarks/browser/bookmark_utils.cc File components/bookmarks/browser/bookmark_utils.cc (right): https://codereview.chromium.org/446003002/diff/160001/components/bookmarks/browser/bookmark_utils.cc#newcode213 components/bookmarks/browser/bookmark_utils.cc:213: const base::string16& title) { On 2014/10/01 19:28:26, sky ...
6 years, 2 months ago (2014-10-02 07:19:46 UTC) #34
Deepak
PTAL
6 years, 2 months ago (2014-10-05 05:50:45 UTC) #35
Deepak
On 2014/10/05 05:50:45, Deepak wrote: > PTAL PTAL
6 years, 2 months ago (2014-10-07 15:19:56 UTC) #36
sky
https://codereview.chromium.org/446003002/diff/180001/components/bookmarks/browser/bookmark_utils.cc File components/bookmarks/browser/bookmark_utils.cc (right): https://codereview.chromium.org/446003002/diff/180001/components/bookmarks/browser/bookmark_utils.cc#newcode207 components/bookmarks/browser/bookmark_utils.cc:207: // This function will update title for the bookmark ...
6 years, 2 months ago (2014-10-07 16:21:24 UTC) #37
Deepak
PTAL https://codereview.chromium.org/446003002/diff/180001/components/bookmarks/browser/bookmark_utils.cc File components/bookmarks/browser/bookmark_utils.cc (right): https://codereview.chromium.org/446003002/diff/180001/components/bookmarks/browser/bookmark_utils.cc#newcode207 components/bookmarks/browser/bookmark_utils.cc:207: // This function will update title for the ...
6 years, 2 months ago (2014-10-08 09:02:24 UTC) #38
sky
https://codereview.chromium.org/446003002/diff/220001/components/bookmarks/browser/bookmark_utils.cc File components/bookmarks/browser/bookmark_utils.cc (right): https://codereview.chromium.org/446003002/diff/220001/components/bookmarks/browser/bookmark_utils.cc#newcode225 components/bookmarks/browser/bookmark_utils.cc:225: base::string16 new_title = *title; new_title should be moved into ...
6 years, 2 months ago (2014-10-08 15:30:27 UTC) #39
Deepak
On 2014/10/08 15:30:27, sky wrote: > https://codereview.chromium.org/446003002/diff/220001/components/bookmarks/browser/bookmark_utils.cc > File components/bookmarks/browser/bookmark_utils.cc (right): > > https://codereview.chromium.org/446003002/diff/220001/components/bookmarks/browser/bookmark_utils.cc#newcode225 > ...
6 years, 2 months ago (2014-10-09 04:23:24 UTC) #40
Deepak
PTAL https://codereview.chromium.org/446003002/diff/220001/components/bookmarks/browser/bookmark_utils.cc File components/bookmarks/browser/bookmark_utils.cc (right): https://codereview.chromium.org/446003002/diff/220001/components/bookmarks/browser/bookmark_utils.cc#newcode225 components/bookmarks/browser/bookmark_utils.cc:225: base::string16 new_title = *title; On 2014/10/08 15:30:27, sky ...
6 years, 2 months ago (2014-10-09 04:23:40 UTC) #41
sky
https://codereview.chromium.org/446003002/diff/240001/components/bookmarks/browser/bookmark_utils.cc File components/bookmarks/browser/bookmark_utils.cc (right): https://codereview.chromium.org/446003002/diff/240001/components/bookmarks/browser/bookmark_utils.cc#newcode233 components/bookmarks/browser/bookmark_utils.cc:233: } Seems like there should be a NOTREACHED here, ...
6 years, 2 months ago (2014-10-09 17:14:24 UTC) #42
Deepak
NOTREACHED() added.Thanks PTAL. https://codereview.chromium.org/446003002/diff/240001/components/bookmarks/browser/bookmark_utils.cc File components/bookmarks/browser/bookmark_utils.cc (right): https://codereview.chromium.org/446003002/diff/240001/components/bookmarks/browser/bookmark_utils.cc#newcode233 components/bookmarks/browser/bookmark_utils.cc:233: } On 2014/10/09 17:14:24, sky wrote: ...
6 years, 2 months ago (2014-10-10 05:06:50 UTC) #43
sky
https://codereview.chromium.org/446003002/diff/280001/components/bookmarks/browser/bookmark_utils_unittest.cc File components/bookmarks/browser/bookmark_utils_unittest.cc (right): https://codereview.chromium.org/446003002/diff/280001/components/bookmarks/browser/bookmark_utils_unittest.cc#newcode317 components/bookmarks/browser/bookmark_utils_unittest.cc:317: TEST_F(BookmarkUtilsTest, PasteSameBookmarkedURL) { Either add a description of what ...
6 years, 2 months ago (2014-10-10 17:32:45 UTC) #44
Deepak
Test function name changed and its usage updated. PTAL https://codereview.chromium.org/446003002/diff/280001/components/bookmarks/browser/bookmark_utils_unittest.cc File components/bookmarks/browser/bookmark_utils_unittest.cc (right): https://codereview.chromium.org/446003002/diff/280001/components/bookmarks/browser/bookmark_utils_unittest.cc#newcode317 components/bookmarks/browser/bookmark_utils_unittest.cc:317: ...
6 years, 2 months ago (2014-10-11 06:32:39 UTC) #45
Deepak
On 2014/10/11 06:32:39, Deepak wrote: Test function name changed and its usage updated. PTAL > ...
6 years, 2 months ago (2014-10-14 12:07:25 UTC) #46
sky
LGTM https://codereview.chromium.org/446003002/diff/350001/components/bookmarks/browser/bookmark_utils_unittest.cc File components/bookmarks/browser/bookmark_utils_unittest.cc (right): https://codereview.chromium.org/446003002/diff/350001/components/bookmarks/browser/bookmark_utils_unittest.cc#newcode319 components/bookmarks/browser/bookmark_utils_unittest.cc:319: TEST_F(BookmarkUtilsTest, MakeTitleUniqueTest) { You don't need to duplicate ...
6 years, 2 months ago (2014-10-14 19:22:33 UTC) #47
Deepak
On 2014/10/14 19:22:33, sky wrote: > LGTM > > https://codereview.chromium.org/446003002/diff/350001/components/bookmarks/browser/bookmark_utils_unittest.cc > File components/bookmarks/browser/bookmark_utils_unittest.cc (right): > ...
6 years, 2 months ago (2014-10-15 04:02:31 UTC) #48
Deepak
https://codereview.chromium.org/446003002/diff/350001/components/bookmarks/browser/bookmark_utils_unittest.cc File components/bookmarks/browser/bookmark_utils_unittest.cc (right): https://codereview.chromium.org/446003002/diff/350001/components/bookmarks/browser/bookmark_utils_unittest.cc#newcode319 components/bookmarks/browser/bookmark_utils_unittest.cc:319: TEST_F(BookmarkUtilsTest, MakeTitleUniqueTest) { On 2014/10/14 19:22:33, sky wrote: > ...
6 years, 2 months ago (2014-10-15 04:02:54 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/446003002/400001
6 years, 2 months ago (2014-10-15 04:04:12 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/18414)
6 years, 2 months ago (2014-10-15 04:19:18 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/446003002/420001
6 years, 2 months ago (2014-10-15 04:49:14 UTC) #55
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/24140) ios_rel_device_ninja on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/18766)
6 years, 2 months ago (2014-10-15 04:57:14 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/446003002/440001
6 years, 2 months ago (2014-10-15 10:04:29 UTC) #59
commit-bot: I haz the power
Committed patchset #19 (id:440001)
6 years, 2 months ago (2014-10-15 12:57:15 UTC) #60
commit-bot: I haz the power
Patchset 19 (id:??) landed as https://crrev.com/33164f770ae372ab34060bec75ef7a4bbfba1607 Cr-Commit-Position: refs/heads/master@{#299680}
6 years, 2 months ago (2014-10-15 12:57:59 UTC) #61
Deepak
I need to do 2 changes to resolve build error's in build boat. 1) typecasting ...
6 years, 2 months ago (2014-10-15 13:06:10 UTC) #62
sky
This patch already landed, right? On Wed, Oct 15, 2014 at 6:06 AM, <deepak.m1@samsung.com> wrote: ...
6 years, 2 months ago (2014-10-15 15:45:56 UTC) #63
Deepak
6 years, 2 months ago (2014-10-16 02:56:18 UTC) #64
Message was sent while issue was closed.
Yes, Patch is landed. But As I should Inform you about build error changes so I
updated in comments.
Thanks

Powered by Google App Engine
This is Rietveld 408576698