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

Unified Diff: ui/views/controls/textfield/textfield_unittest.cc

Issue 558913003: Remove clipboard argument from ScopedClipboardWriter constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't leak a clipboard on Windows Created 6 years, 3 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
« no previous file with comments | « ui/views/controls/textfield/textfield_model_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/textfield_unittest.cc
diff --git a/ui/views/controls/textfield/textfield_unittest.cc b/ui/views/controls/textfield/textfield_unittest.cc
index 2cd92c08966fc61bc2fc69c8d57486ec7cc48bcf..0f9883dba17da442d070a5fe249ff7b2139c247e 100644
--- a/ui/views/controls/textfield/textfield_unittest.cc
+++ b/ui/views/controls/textfield/textfield_unittest.cc
@@ -147,8 +147,7 @@ base::string16 GetClipboardText(ui::ClipboardType type) {
}
void SetClipboardText(ui::ClipboardType type, const std::string& text) {
- ui::ScopedClipboardWriter(ui::Clipboard::GetForCurrentThread(), type)
- .WriteText(ASCIIToUTF16(text));
+ ui::ScopedClipboardWriter(type).WriteText(ASCIIToUTF16(text));
}
} // namespace
« no previous file with comments | « ui/views/controls/textfield/textfield_model_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698