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

Issue 2014733003: Removing parsing of text from pasteboard. (Closed)

Created:
4 years, 7 months ago by dyaroshev
Modified:
3 years, 10 months ago
CC:
dcheng, chromium-reviews, Alexander Yashkin
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Removing parsing of text from pasteboard. This patch modifies logic for drag and dropping text that can be parsed as URL. Previously pasteboard would unconditionally answer that it contains URL. For some cases it is better to process such text using PasteAndGo logic. R=mark@chromium.org, pkasting@chromium.org BUG=610620 Committed: https://crrev.com/dc27d8d8169bfafc95df1eaf5359efaf54a18957 Cr-Commit-Position: refs/heads/master@{#397689}

Patch Set 1 : mac: stop parsing text as url. #

Total comments: 2

Patch Set 2 : splitting calls in two variations, to discass #

Total comments: 7

Patch Set 3 : Replacing overloads with bool parametr, review fixes #

Patch Set 4 : starting to modify os echange data. Now it compiles on mac. #

Patch Set 5 : intial windows patch, compiles #

Patch Set 6 : moving url parsing up the hierarchy #

Total comments: 1

Patch Set 7 : Reverting everything, except mac. Review mac. #

Total comments: 2

Patch Set 8 : Review, round n #

Total comments: 2

Patch Set 9 : Review, round n + 1 #

Total comments: 1

Patch Set 10 : Review, round n + 2 #

Patch Set 11 : Compilation fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -39 lines) Patch
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_view.mm View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_view_unittest.mm View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa.mm View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa_unittest.mm View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/drag_util.mm View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/url_drop_target.mm View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -3 lines 0 comments Download
A chrome/browser/ui/cocoa/url_drop_target_unittest.mm View 1 2 3 4 5 6 7 1 chunk +157 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/web_contents/web_drag_dest_mac.mm View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/mozilla/NSPasteboard+Utils.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/mozilla/NSPasteboard+Utils.mm View 1 2 3 4 5 6 7 8 4 chunks +9 lines, -8 lines 0 comments Download
M third_party/mozilla/README.chromium View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M ui/base/clipboard/clipboard_util_mac_unittest.mm View 1 2 3 4 5 6 7 8 9 10 3 chunks +12 lines, -3 lines 0 comments Download
M ui/base/dragdrop/cocoa_dnd_util.mm View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 66 (25 generated)
dyaroshev
4 years, 7 months ago (2016-05-26 17:46:55 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2014733003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2014733003/1
4 years, 7 months ago (2016-05-26 18:30:12 UTC) #3
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 7 months ago (2016-05-26 18:30:13 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2014733003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2014733003/1
4 years, 7 months ago (2016-05-26 18:31:30 UTC) #7
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. CQ run can only be started ...
4 years, 7 months ago (2016-05-26 18:31:32 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2014733003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2014733003/1
4 years, 7 months ago (2016-05-26 19:32:57 UTC) #11
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. CQ run can only be started ...
4 years, 7 months ago (2016-05-26 19:32:59 UTC) #13
dyaroshev
I've updated all calls, that get url data on mac, so it's easier to discuss, ...
4 years, 7 months ago (2016-05-26 19:36:27 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2014733003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2014733003/20001
4 years, 7 months ago (2016-05-26 19:43:00 UTC) #19
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. CQ run can only be started ...
4 years, 7 months ago (2016-05-26 19:43:02 UTC) #21
Mark Mentovai
https://codereview.chromium.org/2014733003/diff/1/chrome/browser/ui/cocoa/url_drop_target_unittest.mm File chrome/browser/ui/cocoa/url_drop_target_unittest.mm (right): https://codereview.chromium.org/2014733003/diff/1/chrome/browser/ui/cocoa/url_drop_target_unittest.mm#newcode1 chrome/browser/ui/cocoa/url_drop_target_unittest.mm:1: // Copyright (c) 2016 The Chromium Authors. All rights ...
4 years, 7 months ago (2016-05-26 20:21:51 UTC) #22
Avi (use Gerrit)
Erik has been doing lots of drag work; he's the expert.
4 years, 7 months ago (2016-05-26 20:23:49 UTC) #24
erikchen
https://codereview.chromium.org/2014733003/diff/20001/chrome/browser/ui/cocoa/url_drop_target.mm File chrome/browser/ui/cocoa/url_drop_target.mm (right): https://codereview.chromium.org/2014733003/diff/20001/chrome/browser/ui/cocoa/url_drop_target.mm#newcode87 chrome/browser/ui/cocoa/url_drop_target.mm:87: if ([pboard containsURLDataInType]) { I don't think this is ...
4 years, 7 months ago (2016-05-26 21:01:18 UTC) #25
Peter Kasting
On 2016/05/26 21:01:18, erikchen wrote: > Use functions from GURL to determine whether the url ...
4 years, 7 months ago (2016-05-26 21:12:36 UTC) #26
Peter Kasting
On 2016/05/26 21:12:36, Peter Kasting wrote: > I haven't reviewed this CL yet, I just ...
4 years, 7 months ago (2016-05-27 00:05:42 UTC) #27
dyaroshev
On 2016/05/26 20:21:51, Mark Mentovai wrote: > https://codereview.chromium.org/2014733003/diff/1/chrome/browser/ui/cocoa/url_drop_target_unittest.mm#newcode1 > chrome/browser/ui/cocoa/url_drop_target_unittest.mm:1: // Copyright (c) 2016 The ...
4 years, 6 months ago (2016-05-27 14:13:50 UTC) #30
dyaroshev
On 2016/05/26 21:01:18, erikchen wrote: > https://codereview.chromium.org/2014733003/diff/20001/chrome/browser/ui/cocoa/url_drop_target.mm#newcode87 > chrome/browser/ui/cocoa/url_drop_target.mm:87: if ([pboard > containsURLDataInType]) { > ...
4 years, 6 months ago (2016-05-27 14:28:25 UTC) #31
erikchen
> If I understood you correctly, yes. > PasteboardItemFromUrls sets types: > https://code.google.com/p/chromium/codesearch#chromium/src/ui/base/clipboard/clipboard_util_mac.mm&q=clipboard_util_ma&sq=package:chromium&dr=C&l=49 > NSPasteboard+Utils ...
4 years, 6 months ago (2016-05-27 17:16:31 UTC) #32
dyaroshev
On 2016/05/27 17:16:31, erikchen wrote: > Then your test isn't useful. The two cases you ...
4 years, 6 months ago (2016-05-27 17:38:53 UTC) #33
erikchen
> Currently, decision wether to consider URLish text is in other places. > Let's take ...
4 years, 6 months ago (2016-05-27 17:56:37 UTC) #34
dyaroshev
On 2016/05/27 17:56:37, erikchen wrote: > Please add that test, since it makes the expected ...
4 years, 6 months ago (2016-05-28 19:37:55 UTC) #35
dyaroshev
On 2016/05/27 00:05:42, Peter Kasting wrote: > On 2016/05/26 21:12:36, Peter Kasting wrote: > > ...
4 years, 6 months ago (2016-05-28 20:05:35 UTC) #36
dcheng
https://codereview.chromium.org/2014733003/diff/100001/ui/base/dragdrop/os_exchange_data.cc File ui/base/dragdrop/os_exchange_data.cc (right): https://codereview.chromium.org/2014733003/diff/100001/ui/base/dragdrop/os_exchange_data.cc#newcode80 ui/base/dragdrop/os_exchange_data.cc:80: *url = std::move(test); FYI: GURL doesn't have a move ...
4 years, 6 months ago (2016-05-28 20:10:03 UTC) #38
erikchen
On 2016/05/28 19:37:55, dyaroshev wrote: > On 2016/05/27 17:56:37, erikchen wrote: > > Please add ...
4 years, 6 months ago (2016-05-30 00:25:32 UTC) #39
Peter Kasting
On 2016/05/30 00:25:32, erikchen wrote: > On 2016/05/28 19:37:55, dyaroshev wrote: > > On 2016/05/27 ...
4 years, 6 months ago (2016-05-30 06:08:33 UTC) #40
dyaroshev
On 2016/05/30 00:25:32, erikchen wrote: > The CL description is longer than 80 columns. My ...
4 years, 6 months ago (2016-05-30 11:15:49 UTC) #42
erikchen
lgtm % nits mark: It looks like the GN file actually pulls from the gypi ...
4 years, 6 months ago (2016-05-31 17:15:51 UTC) #43
dyaroshev
On 2016/05/31 17:15:51, erikchen wrote: > https://codereview.chromium.org/2014733003/diff/120001/third_party/mozilla/NSPasteboard+Utils.mm#newcode268 > third_party/mozilla/NSPasteboard+Utils.mm:268: if ( [types > containsObject:kWebURLsWithTitlesPboardType] > ...
4 years, 6 months ago (2016-06-01 18:09:03 UTC) #44
erikchen
On 2016/06/01 18:09:03, dyaroshev wrote: > On 2016/05/31 17:15:51, erikchen wrote: > > > https://codereview.chromium.org/2014733003/diff/120001/third_party/mozilla/NSPasteboard+Utils.mm#newcode268 ...
4 years, 6 months ago (2016-06-01 18:21:24 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2014733003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2014733003/140001
4 years, 6 months ago (2016-06-01 20:06:04 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/193168)
4 years, 6 months ago (2016-06-01 20:15:26 UTC) #49
dyaroshev
On 2016/05/26 20:23:49, Avi wrote: > Erik has been doing lots of drag work; he's ...
4 years, 6 months ago (2016-06-02 17:23:14 UTC) #50
Avi (use Gerrit)
https://codereview.chromium.org/2014733003/diff/140001/third_party/mozilla/NSPasteboard+Utils.h File third_party/mozilla/NSPasteboard+Utils.h (right): https://codereview.chromium.org/2014733003/diff/140001/third_party/mozilla/NSPasteboard+Utils.h#newcode59 third_party/mozilla/NSPasteboard+Utils.h:59: convertTextToURL:(BOOL)convertTextToURL; convertingTextToURL to match the previous selector section. https://codereview.chromium.org/2014733003/diff/140001/third_party/mozilla/NSPasteboard+Utils.h#newcode60 ...
4 years, 6 months ago (2016-06-02 18:08:02 UTC) #51
dyaroshev
On 2016/06/02 18:08:02, Avi wrote: > convertTextToURL:(BOOL)convertTextToURL; > convertingTextToURL to match the previous selector section. ...
4 years, 6 months ago (2016-06-02 19:09:15 UTC) #52
Avi (use Gerrit)
LGTM with minor comment tweak. https://codereview.chromium.org/2014733003/diff/160001/third_party/mozilla/README.chromium File third_party/mozilla/README.chromium (right): https://codereview.chromium.org/2014733003/diff/160001/third_party/mozilla/README.chromium#newcode27 third_party/mozilla/README.chromium:27: modified to accept an ...
4 years, 6 months ago (2016-06-02 19:12:56 UTC) #53
dyaroshev
On 2016/06/02 19:12:56, Avi wrote: > https://codereview.chromium.org/2014733003/diff/160001/third_party/mozilla/README.chromium#newcode27 > third_party/mozilla/README.chromium:27: modified to accept an additional > ...
4 years, 6 months ago (2016-06-02 19:26:25 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2014733003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2014733003/180001
4 years, 6 months ago (2016-06-02 19:27:50 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/238091)
4 years, 6 months ago (2016-06-02 19:46:46 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2014733003/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2014733003/200001
4 years, 6 months ago (2016-06-03 11:35:02 UTC) #62
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 6 months ago (2016-06-03 12:15:43 UTC) #64
commit-bot: I haz the power
4 years, 6 months ago (2016-06-03 12:17:25 UTC) #66
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/dc27d8d8169bfafc95df1eaf5359efaf54a18957
Cr-Commit-Position: refs/heads/master@{#397689}

Powered by Google App Engine
This is Rietveld 408576698