diff options
author | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-07 20:26:50 +0000 |
---|---|---|
committer | erg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-07 20:26:50 +0000 |
commit | 8919c55c25dda90fcc7443855f8f96e4a0947e86 (patch) | |
tree | 61f004f948397a75e878d5792456ea0db654a57e /ash/drag_drop | |
parent | fde2cb0bc16de6a5be9e671f90370fed30dc83e5 (diff) | |
download | chromium_src-8919c55c25dda90fcc7443855f8f96e4a0947e86.zip chromium_src-8919c55c25dda90fcc7443855f8f96e4a0947e86.tar.gz chromium_src-8919c55c25dda90fcc7443855f8f96e4a0947e86.tar.bz2 |
Change how ui::Clipboard is accessed so there's only one per thread.
Currently, there can be any number of Clipboard objects, which can be massively simplified. This removes interfaces for fetching the Clipboard and makes everyone go through a single static ui::Clipboard::GetForCurrentThread() access point.
BUG=130805
TBR=tc (change in webkit/ is trivial)
Review URL: https://chromiumcodereview.appspot.com/10911074
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155468 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/drag_drop')
-rw-r--r-- | ash/drag_drop/drag_drop_controller_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ash/drag_drop/drag_drop_controller_unittest.cc b/ash/drag_drop/drag_drop_controller_unittest.cc index 044b496..b7c94e8 100644 --- a/ash/drag_drop/drag_drop_controller_unittest.cc +++ b/ash/drag_drop/drag_drop_controller_unittest.cc @@ -503,7 +503,7 @@ TEST_F(DragDropControllerTest, ViewRemovedWhileInDragDropTest) { } TEST_F(DragDropControllerTest, DragLeavesClipboardAloneTest) { - ui::Clipboard* cb = views::ViewsDelegate::views_delegate->GetClipboard(); + ui::Clipboard* cb = ui::Clipboard::GetForCurrentThread(); std::string clip_str("I am on the clipboard"); { // We first copy some text to the clipboard. |