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

Issue 437423005: Show paste option on right click of bookmark bar if some URL is copied from outside browser or from… (Closed)

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

Description

Show paste option on right click of bookmark bar if some URL is copied from outside browser or from any page content Paste option was not appearing when some URL is copied from outside browser or web page content. But if some URL is copied from url bar the paste option appears when right click is performed on bookmark bar. Added check in CanPasteFromClipboard to handle this scenario. BUG=400644 Committed: https://crrev.com/a54214a5ad96a46d6b06d43a841133d66172d49d Cr-Commit-Position: refs/heads/master@{#294380}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Modified code as suggested. #

Total comments: 1

Patch Set 3 : Modified code as suggested. #

Total comments: 2

Patch Set 4 : Fixed indentation and incorporated other comments. #

Total comments: 3

Patch Set 5 : Refactored code as per suggestion #

Patch Set 6 : few nits resolved #

Patch Set 7 : Added unit tests #

Total comments: 1

Patch Set 8 : Modified code as per suggestion #

Patch Set 9 : Code modification as per review comments. #

Total comments: 6

Patch Set 10 : Added suggested test case and changed fucntion name. #

Total comments: 5

Patch Set 11 : Created new test assertion #

Total comments: 2

Patch Set 12 : Modified code as per review comments. #

Patch Set 13 : Fixing build breaks #

Patch Set 14 : Fixing build breaks #

Patch Set 15 : build breaks fix. #

Patch Set 16 : Fixed build break. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -4 lines) Patch
M components/bookmarks/browser/bookmark_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +22 lines, -4 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 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (3 generated)
ankit
PTAL
6 years, 4 months ago (2014-08-05 10:14:43 UTC) #1
ankit
6 years, 4 months ago (2014-08-05 10:15:11 UTC) #2
sky
https://codereview.chromium.org/437423005/diff/1/components/bookmarks/browser/bookmark_node_data.cc File components/bookmarks/browser/bookmark_node_data.cc (right): https://codereview.chromium.org/437423005/diff/1/components/bookmarks/browser/bookmark_node_data.cc#newcode125 components/bookmarks/browser/bookmark_node_data.cc:125: bool BookmarkNodeData::ClipboardContainsURLs() { These functions don't need bookmarkNodeData at ...
6 years, 4 months ago (2014-08-05 16:53:49 UTC) #3
tfarina
https://codereview.chromium.org/437423005/diff/1/components/bookmarks/browser/bookmark_node_data.cc File components/bookmarks/browser/bookmark_node_data.cc (right): https://codereview.chromium.org/437423005/diff/1/components/bookmarks/browser/bookmark_node_data.cc#newcode125 components/bookmarks/browser/bookmark_node_data.cc:125: bool BookmarkNodeData::ClipboardContainsURLs() { On 2014/08/05 16:53:49, sky wrote: > ...
6 years, 4 months ago (2014-08-05 16:56:48 UTC) #4
ankit
On 2014/08/05 16:53:49, sky wrote: > https://codereview.chromium.org/437423005/diff/1/components/bookmarks/browser/bookmark_node_data.cc > File components/bookmarks/browser/bookmark_node_data.cc (right): > > https://codereview.chromium.org/437423005/diff/1/components/bookmarks/browser/bookmark_node_data.cc#newcode125 > ...
6 years, 4 months ago (2014-08-07 04:34:45 UTC) #5
ankit
On 2014/08/07 04:34:45, ankit wrote: > On 2014/08/05 16:53:49, sky wrote: > > > https://codereview.chromium.org/437423005/diff/1/components/bookmarks/browser/bookmark_node_data.cc ...
6 years, 4 months ago (2014-08-08 15:28:27 UTC) #6
ankit
On 2014/08/08 15:28:27, ankit wrote: > On 2014/08/07 04:34:45, ankit wrote: > > On 2014/08/05 ...
6 years, 4 months ago (2014-08-12 11:27:54 UTC) #7
sky
https://codereview.chromium.org/437423005/diff/20001/components/bookmarks/browser/bookmark_node_data.h File components/bookmarks/browser/bookmark_node_data.h (right): https://codereview.chromium.org/437423005/diff/20001/components/bookmarks/browser/bookmark_node_data.h#newcode103 components/bookmarks/browser/bookmark_node_data.h:103: static bool ClipboardContainsUrls(); This is only used by BookmarkBarView, ...
6 years, 4 months ago (2014-08-12 16:39:53 UTC) #8
ankit
On 2014/08/12 16:39:53, sky wrote: > https://codereview.chromium.org/437423005/diff/20001/components/bookmarks/browser/bookmark_node_data.h > File components/bookmarks/browser/bookmark_node_data.h (right): > > https://codereview.chromium.org/437423005/diff/20001/components/bookmarks/browser/bookmark_node_data.h#newcode103 > ...
6 years, 4 months ago (2014-08-13 15:15:26 UTC) #9
sky
https://codereview.chromium.org/437423005/diff/40001/components/bookmarks/browser/bookmark_utils.cc File components/bookmarks/browser/bookmark_utils.cc (right): https://codereview.chromium.org/437423005/diff/40001/components/bookmarks/browser/bookmark_utils.cc#newcode199 components/bookmarks/browser/bookmark_utils.cc:199: if (!bookmark_data.ReadFromClipboard(ui::CLIPBOARD_TYPE_COPY_PASTE)) Fix indentation here. https://codereview.chromium.org/437423005/diff/40001/components/bookmarks/browser/bookmark_utils.cc#newcode208 components/bookmarks/browser/bookmark_utils.cc:208: ui::Clipboard::GetUrlWFormatType(), ui::CLIPBOARD_TYPE_COPY_PASTE)) ...
6 years, 4 months ago (2014-08-13 16:48:35 UTC) #10
ankit
On 2014/08/13 16:48:35, sky wrote: > https://codereview.chromium.org/437423005/diff/40001/components/bookmarks/browser/bookmark_utils.cc > File components/bookmarks/browser/bookmark_utils.cc (right): > > https://codereview.chromium.org/437423005/diff/40001/components/bookmarks/browser/bookmark_utils.cc#newcode199 > ...
6 years, 4 months ago (2014-08-14 13:27:21 UTC) #11
ankit
On 2014/08/14 13:27:21, ankit wrote: > On 2014/08/13 16:48:35, sky wrote: > > > https://codereview.chromium.org/437423005/diff/40001/components/bookmarks/browser/bookmark_utils.cc ...
6 years, 4 months ago (2014-08-15 14:19:10 UTC) #12
sky
https://codereview.chromium.org/437423005/diff/60001/components/bookmarks/browser/bookmark_utils.cc File components/bookmarks/browser/bookmark_utils.cc (right): https://codereview.chromium.org/437423005/diff/60001/components/bookmarks/browser/bookmark_utils.cc#newcode199 components/bookmarks/browser/bookmark_utils.cc:199: return; spacing is off. But I think this would ...
6 years, 4 months ago (2014-08-15 18:24:55 UTC) #13
ankit
On 2014/08/15 18:24:55, sky wrote: > https://codereview.chromium.org/437423005/diff/60001/components/bookmarks/browser/bookmark_utils.cc > File components/bookmarks/browser/bookmark_utils.cc (right): > > https://codereview.chromium.org/437423005/diff/60001/components/bookmarks/browser/bookmark_utils.cc#newcode199 > ...
6 years, 4 months ago (2014-08-16 07:43:28 UTC) #14
ankit
PTAL new patch https://codereview.chromium.org/437423005/diff/60001/components/bookmarks/browser/bookmark_utils.cc File components/bookmarks/browser/bookmark_utils.cc (right): https://codereview.chromium.org/437423005/diff/60001/components/bookmarks/browser/bookmark_utils.cc#newcode199 components/bookmarks/browser/bookmark_utils.cc:199: return; On 2014/08/15 18:24:55, sky wrote: ...
6 years, 4 months ago (2014-08-16 07:43:57 UTC) #15
ankit
On 2014/08/16 07:43:57, ankit wrote: > > https://codereview.chromium.org/437423005/diff/60001/components/bookmarks/browser/bookmark_utils.cc > File components/bookmarks/browser/bookmark_utils.cc (right): > > https://codereview.chromium.org/437423005/diff/60001/components/bookmarks/browser/bookmark_utils.cc#newcode199 ...
6 years, 4 months ago (2014-08-16 07:44:21 UTC) #16
ankit
On 2014/08/16 07:44:21, ankit wrote: > On 2014/08/16 07:43:57, ankit wrote: > > > > ...
6 years, 4 months ago (2014-08-18 15:47:29 UTC) #17
ankit
On 2014/08/18 15:47:29, ankit wrote: > On 2014/08/16 07:44:21, ankit wrote: > > On 2014/08/16 ...
6 years, 4 months ago (2014-08-19 13:30:18 UTC) #18
ankit
On 2014/08/19 13:30:18, ankit wrote: > On 2014/08/18 15:47:29, ankit wrote: > > On 2014/08/16 ...
6 years, 4 months ago (2014-08-19 16:56:04 UTC) #19
ankit
@sky PTAL
6 years, 4 months ago (2014-08-21 12:26:15 UTC) #20
ankit
On 2014/08/21 12:26:15, ankit wrote: > @sky > PTAL PTAL
6 years, 4 months ago (2014-08-22 17:45:36 UTC) #21
sky
https://codereview.chromium.org/437423005/diff/120001/components/bookmarks/browser/bookmark_utils.h File components/bookmarks/browser/bookmark_utils.h (right): https://codereview.chromium.org/437423005/diff/120001/components/bookmarks/browser/bookmark_utils.h#newcode154 components/bookmarks/browser/bookmark_utils.h:154: bool ClipboardContainsValidUrl(base::string16&); I strongly urge you to read the ...
6 years, 4 months ago (2014-08-22 19:40:41 UTC) #22
ankit
@sky PTAL
6 years, 3 months ago (2014-08-27 13:28:27 UTC) #23
ankit
On 2014/08/27 13:28:27, ankit wrote: > @sky > PTAL @sky PTAL
6 years, 3 months ago (2014-08-30 14:29:45 UTC) #24
sky
https://codereview.chromium.org/437423005/diff/160001/components/bookmarks/browser/bookmark_utils.cc File components/bookmarks/browser/bookmark_utils.cc (right): https://codereview.chromium.org/437423005/diff/160001/components/bookmarks/browser/bookmark_utils.cc#newcode146 components/bookmarks/browser/bookmark_utils.cc:146: GURL ReadClipboardURL() { ReadClipboardURL -> GetUrlFromClipboard() https://codereview.chromium.org/437423005/diff/160001/components/bookmarks/browser/bookmark_utils.cc#newcode216 components/bookmarks/browser/bookmark_utils.cc:216: BookmarkNodeData ...
6 years, 3 months ago (2014-09-02 17:18:55 UTC) #25
ankit
@sky PTAL https://codereview.chromium.org/437423005/diff/160001/components/bookmarks/browser/bookmark_utils.cc File components/bookmarks/browser/bookmark_utils.cc (right): https://codereview.chromium.org/437423005/diff/160001/components/bookmarks/browser/bookmark_utils.cc#newcode146 components/bookmarks/browser/bookmark_utils.cc:146: GURL ReadClipboardURL() { On 2014/09/02 17:18:54, sky ...
6 years, 3 months ago (2014-09-03 05:40:40 UTC) #26
ankit
On 2014/09/03 05:40:40, ankit wrote: > @sky > PTAL > > https://codereview.chromium.org/437423005/diff/160001/components/bookmarks/browser/bookmark_utils.cc > File components/bookmarks/browser/bookmark_utils.cc ...
6 years, 3 months ago (2014-09-04 15:40:42 UTC) #27
ankit
On 2014/09/04 15:40:42, ankit wrote: > On 2014/09/03 05:40:40, ankit wrote: > > @sky > ...
6 years, 3 months ago (2014-09-05 16:58:18 UTC) #28
ankit
@sky PTAL
6 years, 3 months ago (2014-09-08 11:52:55 UTC) #29
sky
https://codereview.chromium.org/437423005/diff/180001/components/bookmarks/browser/bookmark_utils.cc File components/bookmarks/browser/bookmark_utils.cc (right): https://codereview.chromium.org/437423005/diff/180001/components/bookmarks/browser/bookmark_utils.cc#newcode145 components/bookmarks/browser/bookmark_utils.cc:145: // Returns URL if present in clipboard Returns the ...
6 years, 3 months ago (2014-09-08 16:26:19 UTC) #30
ankit
On 2014/09/08 16:26:19, sky wrote: > https://codereview.chromium.org/437423005/diff/180001/components/bookmarks/browser/bookmark_utils.cc > File components/bookmarks/browser/bookmark_utils.cc (right): > > https://codereview.chromium.org/437423005/diff/180001/components/bookmarks/browser/bookmark_utils.cc#newcode145 > ...
6 years, 3 months ago (2014-09-09 10:36:07 UTC) #31
sky
https://codereview.chromium.org/437423005/diff/200001/components/bookmarks/browser/bookmark_utils_unittest.cc File components/bookmarks/browser/bookmark_utils_unittest.cc (right): https://codereview.chromium.org/437423005/diff/200001/components/bookmarks/browser/bookmark_utils_unittest.cc#newcode284 components/bookmarks/browser/bookmark_utils_unittest.cc:284: clipboard_writer.WriteText(ASCIIToUTF16("")); ASCIIToUTF16("")->base::string16()
6 years, 3 months ago (2014-09-09 15:52:29 UTC) #32
ankit
@sky PTAL https://codereview.chromium.org/437423005/diff/200001/components/bookmarks/browser/bookmark_utils_unittest.cc File components/bookmarks/browser/bookmark_utils_unittest.cc (right): https://codereview.chromium.org/437423005/diff/200001/components/bookmarks/browser/bookmark_utils_unittest.cc#newcode284 components/bookmarks/browser/bookmark_utils_unittest.cc:284: clipboard_writer.WriteText(ASCIIToUTF16("")); On 2014/09/09 15:52:29, sky wrote: > ...
6 years, 3 months ago (2014-09-10 13:18:47 UTC) #33
sky
LGTM
6 years, 3 months ago (2014-09-10 19:02:21 UTC) #34
ankit
On 2014/09/10 19:02:21, sky wrote: > LGTM Thanks.
6 years, 3 months ago (2014-09-11 03:41:31 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/437423005/220001
6 years, 3 months ago (2014-09-11 03:42:34 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device/builds/13908)
6 years, 3 months ago (2014-09-11 03:57:44 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/437423005/300001
6 years, 3 months ago (2014-09-11 12:41:20 UTC) #41
commit-bot: I haz the power
Committed patchset #16 (id:300001) as 76dace2f62ce9ad7348bb55c8011ac947ea75b0f
6 years, 3 months ago (2014-09-11 13:39:23 UTC) #42
ankit
On 2014/09/11 13:39:23, I haz the power (commit-bot) wrote: > Committed patchset #16 (id:300001) as ...
6 years, 3 months ago (2014-09-11 13:40:16 UTC) #43
commit-bot: I haz the power
6 years, 3 months ago (2014-09-11 13:41:42 UTC) #44
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/a54214a5ad96a46d6b06d43a841133d66172d49d
Cr-Commit-Position: refs/heads/master@{#294380}

Powered by Google App Engine
This is Rietveld 408576698