Chromium Code Reviews

Unified Diff: chrome/browser/ui/ash/screenshot_taker.cc

Issue 558913003: Remove clipboard argument from ScopedClipboardWriter constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: chrome/browser/ui/ash/screenshot_taker.cc
diff --git a/chrome/browser/ui/ash/screenshot_taker.cc b/chrome/browser/ui/ash/screenshot_taker.cc
index e7c320b69e0908930b1f0d576bf6ee5b9e1bce07..4d43799d7cef1f228eab9dd416b8bae853687284 100644
--- a/chrome/browser/ui/ash/screenshot_taker.cc
+++ b/chrome/browser/ui/ash/screenshot_taker.cc
@@ -74,8 +74,7 @@ void CopyScreenshotToClipboard(scoped_refptr<base::RefCountedString> png_data) {
// TODO(dcheng): Why don't we take advantage of the ability to write bitmaps
// to the clipboard here?
{
- ui::ScopedClipboardWriter scw(ui::Clipboard::GetForCurrentThread(),
- ui::CLIPBOARD_TYPE_COPY_PASTE);
+ ui::ScopedClipboardWriter scw(ui::CLIPBOARD_TYPE_COPY_PASTE);
std::string html(kImageClipboardFormatPrefix);
html += encoded;
html += kImageClipboardFormatSuffix;

Powered by Google App Engine