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

Unified Diff: chrome_frame/test/chrome_frame_test_utils.cc

Issue 18348025: ProcessSingleton now uses base::win::MessageWindow to create a message-only window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chrome_frame_test::ContextMenuTest destroys the clipboard Created 7 years, 6 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: chrome_frame/test/chrome_frame_test_utils.cc
diff --git a/chrome_frame/test/chrome_frame_test_utils.cc b/chrome_frame/test/chrome_frame_test_utils.cc
index 80db1b3c4abb448880898b45cfec156637884313..c3c5d4c7605f866d51c2cf8699cb340e1f9cd1d8 100644
--- a/chrome_frame/test/chrome_frame_test_utils.cc
+++ b/chrome_frame/test/chrome_frame_test_utils.cc
@@ -532,6 +532,10 @@ std::wstring GetClipboardText() {
return UTF16ToWide(text16);
}
+void DestroyClipboard() {
+ ui::Clipboard::DestroyClipboardForCurrentThread();
+}
+
void SetClipboardText(const std::wstring& text) {
ui::ScopedClipboardWriter clipboard_writer(
ui::Clipboard::GetForCurrentThread(),

Powered by Google App Engine
This is Rietveld 408576698