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

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: . 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
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 b7a61170db195132f0ae35a3da81bf22d76b48fa..56f4c5d6bd838df3921b71316c7d80a2e33855c2 100644
--- a/ui/views/controls/textfield/textfield_unittest.cc
+++ b/ui/views/controls/textfield/textfield_unittest.cc
@@ -139,8 +139,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

Powered by Google App Engine
This is Rietveld 408576698