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

Unified Diff: ui/views/controls/message_box_view.cc

Issue 9232075: Have ScopedClipboardWriter and Clipboard::WriteObjects take a buffer parameter. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix build error Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/views/controls/message_box_view.cc
diff --git a/ui/views/controls/message_box_view.cc b/ui/views/controls/message_box_view.cc
index 6ce321766de541c7e62aa0e21aff4dfc433bceba..af2729eb132b6c67eccc9fe8d6e17edbb8aa4663 100644
--- a/ui/views/controls/message_box_view.cc
+++ b/ui/views/controls/message_box_view.cc
@@ -116,7 +116,7 @@ bool MessageBoxView::AcceleratorPressed(const ui::Accelerator& accelerator) {
if (!clipboard)
return false;
- ui::ScopedClipboardWriter scw(clipboard);
+ ui::ScopedClipboardWriter scw(clipboard, ui::Clipboard::BUFFER_STANDARD);
scw.WriteText(message_label_->GetText());
return true;
}

Powered by Google App Engine
This is Rietveld 408576698