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

Issue 542203004: MacViews: Get OSExchangeDataTest to pass (Closed)

Created:
6 years, 3 months ago by Andre
Modified:
6 years, 3 months ago
Reviewers:
sky, dcheng
CC:
chromium-reviews, mac-views-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

MacViews: Get OSExchangeDataTest to pass. Add filenames support. DO_NOT_CONVERT_FILENAMES policy is not supported because writing NSFilenamesPboardType to NSPasteboard always populates the URL types. Modify SetURL so that it doesn't overwrite previous SetString. The following tests now passes: OSExchangeDataTest.URLAndString OSExchangeDataTest.TestFileToURLConversion BUG=378134 Committed: https://crrev.com/31c81b78e5c6a0142e1755721574e2f399aca9ea Cr-Commit-Position: refs/heads/master@{#296444}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixes for dcheng #

Total comments: 2

Patch Set 3 : dcheng round 2 #

Total comments: 2

Patch Set 4 : standardize paths #

Total comments: 4

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -11 lines) Patch
M ui/base/dragdrop/os_exchange_data_provider_mac.mm View 1 2 3 4 4 chunks +38 lines, -10 lines 0 comments Download
M ui/base/dragdrop/os_exchange_data_unittest.cc View 1 3 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 20 (3 generated)
Andre
dcheng PTAL.
6 years, 3 months ago (2014-09-05 22:28:33 UTC) #2
dcheng
Sorry for the delay on the review. https://codereview.chromium.org/542203004/diff/1/ui/base/dragdrop/os_exchange_data_unittest.cc File ui/base/dragdrop/os_exchange_data_unittest.cc (right): https://codereview.chromium.org/542203004/diff/1/ui/base/dragdrop/os_exchange_data_unittest.cc#newcode108 ui/base/dragdrop/os_exchange_data_unittest.cc:108: // NSPasteboard ...
6 years, 3 months ago (2014-09-10 00:22:54 UTC) #3
dcheng
Sorry for the delay on the review.
6 years, 3 months ago (2014-09-10 00:22:56 UTC) #4
Andre
https://codereview.chromium.org/542203004/diff/1/ui/base/dragdrop/os_exchange_data_unittest.cc File ui/base/dragdrop/os_exchange_data_unittest.cc (right): https://codereview.chromium.org/542203004/diff/1/ui/base/dragdrop/os_exchange_data_unittest.cc#newcode108 ui/base/dragdrop/os_exchange_data_unittest.cc:108: // NSPasteboard does not support not converting, writing NSFilenamesPboardType ...
6 years, 3 months ago (2014-09-13 01:10:50 UTC) #5
dcheng
https://codereview.chromium.org/542203004/diff/20001/ui/base/dragdrop/os_exchange_data_provider_mac.mm File ui/base/dragdrop/os_exchange_data_provider_mac.mm (right): https://codereview.chromium.org/542203004/diff/20001/ui/base/dragdrop/os_exchange_data_provider_mac.mm#newcode97 ui/base/dragdrop/os_exchange_data_provider_mac.mm:97: if ([paths count] > 0 && [[paths objectAtIndex:0] isEqual:[ns_url ...
6 years, 3 months ago (2014-09-15 21:38:47 UTC) #6
Andre
https://codereview.chromium.org/542203004/diff/20001/ui/base/dragdrop/os_exchange_data_provider_mac.mm File ui/base/dragdrop/os_exchange_data_provider_mac.mm (right): https://codereview.chromium.org/542203004/diff/20001/ui/base/dragdrop/os_exchange_data_provider_mac.mm#newcode97 ui/base/dragdrop/os_exchange_data_provider_mac.mm:97: if ([paths count] > 0 && [[paths objectAtIndex:0] isEqual:[ns_url ...
6 years, 3 months ago (2014-09-16 18:00:08 UTC) #7
dcheng
Sorry for the delay on this, as I was OOO. If I don't reply by ...
6 years, 3 months ago (2014-09-22 20:25:17 UTC) #8
dcheng
https://codereview.chromium.org/542203004/diff/40001/ui/base/dragdrop/os_exchange_data_provider_mac.mm File ui/base/dragdrop/os_exchange_data_provider_mac.mm (right): https://codereview.chromium.org/542203004/diff/40001/ui/base/dragdrop/os_exchange_data_provider_mac.mm#newcode97 ui/base/dragdrop/os_exchange_data_provider_mac.mm:97: if ([paths containsObject:[ns_url path]]) Do we need to try ...
6 years, 3 months ago (2014-09-23 17:49:10 UTC) #9
Andre
https://codereview.chromium.org/542203004/diff/40001/ui/base/dragdrop/os_exchange_data_provider_mac.mm File ui/base/dragdrop/os_exchange_data_provider_mac.mm (right): https://codereview.chromium.org/542203004/diff/40001/ui/base/dragdrop/os_exchange_data_provider_mac.mm#newcode97 ui/base/dragdrop/os_exchange_data_provider_mac.mm:97: if ([paths containsObject:[ns_url path]]) On 2014/09/23 17:49:10, dcheng wrote: ...
6 years, 3 months ago (2014-09-24 01:12:40 UTC) #10
dcheng
https://codereview.chromium.org/542203004/diff/60001/ui/base/dragdrop/os_exchange_data_provider_mac.mm File ui/base/dragdrop/os_exchange_data_provider_mac.mm (right): https://codereview.chromium.org/542203004/diff/60001/ui/base/dragdrop/os_exchange_data_provider_mac.mm#newcode94 ui/base/dragdrop/os_exchange_data_provider_mac.mm:94: // If the URL matches the filename, assume that ...
6 years, 3 months ago (2014-09-24 02:36:34 UTC) #11
Andre
https://codereview.chromium.org/542203004/diff/60001/ui/base/dragdrop/os_exchange_data_provider_mac.mm File ui/base/dragdrop/os_exchange_data_provider_mac.mm (right): https://codereview.chromium.org/542203004/diff/60001/ui/base/dragdrop/os_exchange_data_provider_mac.mm#newcode94 ui/base/dragdrop/os_exchange_data_provider_mac.mm:94: // If the URL matches the filename, assume that ...
6 years, 3 months ago (2014-09-24 03:35:58 UTC) #12
dcheng
lgtm
6 years, 3 months ago (2014-09-24 03:45:39 UTC) #13
Andre
sky, please review.
6 years, 3 months ago (2014-09-24 04:43:00 UTC) #15
sky
LGTM
6 years, 3 months ago (2014-09-24 14:37:01 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/542203004/80001
6 years, 3 months ago (2014-09-24 16:30:34 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:80001) as f45976f731f5aff594f437e2b2fb6590dece8e94
6 years, 3 months ago (2014-09-24 17:01:58 UTC) #19
commit-bot: I haz the power
6 years, 3 months ago (2014-09-24 17:02:38 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/31c81b78e5c6a0142e1755721574e2f399aca9ea
Cr-Commit-Position: refs/heads/master@{#296444}

Powered by Google App Engine
This is Rietveld 408576698