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

Issue 558913003: Remove clipboard argument from ScopedClipboardWriter constructor. (Closed)

Created:
6 years, 3 months ago by dcheng
Modified:
6 years, 3 months ago
Reviewers:
jamesr, Elliot Glaysher, sky
CC:
ben+ash_chromium.org, cbentzel+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, Elliot Glaysher, jam, kalyank, mkwst+moarreviews-renderer_chromium.org, nona+watch_chromium.org, penghuang+watch_chromium.org, piman, sadrul, James Su, tfarina, yukishiino+watch_chromium.org, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Remove clipboard argument from ScopedClipboardWriter constructor. Unfortunately, early binding to a clipboard on one thread makes it hard to implement some cleanups in the clipboard IPC handlers for writing data. Since all existing callers simply pass in the clipboard for the current thread, this patch removes the constructor parameter in favor of having ScopedClipboardWriter use it itself internally. BUG=319285 Committed: https://crrev.com/3749e4e5ae82c3ad4e379d347a115fb2a8ab489b Cr-Commit-Position: refs/heads/master@{#295344}

Patch Set 1 #

Patch Set 2 : Compile/formatting fixes #

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : Don't leak a clipboard on Windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -113 lines) Patch
M ash/drag_drop/drag_drop_controller_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_context_menu/render_view_context_menu.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/renderer_host/pepper/pepper_flash_clipboard_message_filter.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/screenshot_taker.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_view_browsertest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_view_unittest.cc View 1 4 chunks +5 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc View 1 2 chunks +1 line, -3 lines 0 comments Download
M chrome/common/net/url_util.h View 1 1 chunk +1 line, -7 lines 0 comments Download
M chrome/common/net/url_util.cc View 1 2 chunks +3 lines, -5 lines 0 comments Download
M components/bookmarks/browser/bookmark_node_data.cc View 1 chunk +1 line, -2 lines 0 comments Download
M components/bookmarks/browser/bookmark_utils_unittest.cc View 1 3 chunks +2 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M content/renderer/scoped_clipboard_writer_glue.cc View 1 chunk +6 lines, -5 lines 0 comments Download
M ui/base/clipboard/clipboard_unittest.cc View 1 2 3 20 chunks +24 lines, -38 lines 0 comments Download
M ui/base/clipboard/scoped_clipboard_writer.h View 3 chunks +5 lines, -5 lines 0 comments Download
M ui/base/clipboard/scoped_clipboard_writer.cc View 1 1 chunk +3 lines, -6 lines 0 comments Download
M ui/views/controls/message_box_view.cc View 1 chunk +1 line, -5 lines 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 2 chunks +0 lines, -2 lines 0 comments Download
M ui/views/controls/textfield/textfield_model.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M ui/views/controls/textfield/textfield_model_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/controls/textfield/textfield_unittest.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
dcheng
This is a pretty straightforward CL, with the exception of a rather ugly hack in ...
6 years, 3 months ago (2014-09-17 06:25:28 UTC) #2
dcheng
On 2014/09/17 at 06:25:28, dcheng (OOO) wrote: > This is a pretty straightforward CL, with ...
6 years, 3 months ago (2014-09-17 06:25:54 UTC) #3
jamesr
c/r/ lgtm +erg
6 years, 3 months ago (2014-09-17 06:57:01 UTC) #4
sky
LGTM https://codereview.chromium.org/558913003/diff/40001/ui/base/clipboard/scoped_clipboard_writer.h File ui/base/clipboard/scoped_clipboard_writer.h (right): https://codereview.chromium.org/558913003/diff/40001/ui/base/clipboard/scoped_clipboard_writer.h#newcode74 ui/base/clipboard/scoped_clipboard_writer.h:74: Clipboard::ObjectMap objects_; style guide says members should be ...
6 years, 3 months ago (2014-09-17 15:41:51 UTC) #5
dcheng
https://codereview.chromium.org/558913003/diff/40001/ui/base/clipboard/scoped_clipboard_writer.h File ui/base/clipboard/scoped_clipboard_writer.h (right): https://codereview.chromium.org/558913003/diff/40001/ui/base/clipboard/scoped_clipboard_writer.h#newcode74 ui/base/clipboard/scoped_clipboard_writer.h:74: Clipboard::ObjectMap objects_; On 2014/09/17 15:41:50, sky wrote: > style ...
6 years, 3 months ago (2014-09-17 17:10:49 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/558913003/40001
6 years, 3 months ago (2014-09-17 17:16:33 UTC) #8
Elliot Glaysher
lgtm
6 years, 3 months ago (2014-09-17 17:33:00 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_swarming/builds/10468)
6 years, 3 months ago (2014-09-17 18:40:56 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/558913003/40001
6 years, 3 months ago (2014-09-17 19:22:59 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/558913003/60001
6 years, 3 months ago (2014-09-17 20:26:15 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001) as ed1fad2bbfce5501f9061af7017619c061f313b3
6 years, 3 months ago (2014-09-17 21:23:54 UTC) #18
commit-bot: I haz the power
6 years, 3 months ago (2014-09-17 21:24:34 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/3749e4e5ae82c3ad4e379d347a115fb2a8ab489b
Cr-Commit-Position: refs/heads/master@{#295344}

Powered by Google App Engine
This is Rietveld 408576698