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

Unified Diff: chrome/browser/render_view_context_menu_controller.cc

Issue 9154: Rewrote the clipboard API to be more concurrent. Added a helper class to make... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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 | « chrome/browser/download/download_util.cc ('k') | chrome/browser/resource_message_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/render_view_context_menu_controller.cc
===================================================================
--- chrome/browser/render_view_context_menu_controller.cc (revision 4189)
+++ chrome/browser/render_view_context_menu_controller.cc (working copy)
@@ -6,6 +6,7 @@
#include "base/command_line.h"
#include "base/path_service.h"
+#include "base/scoped_clipboard_writer.h"
#include "base/string_util.h"
#include "chrome/app/chrome_dll_resource.h"
#include "chrome/common/chrome_paths.h"
@@ -65,8 +66,8 @@
if (!clipboard)
return;
- clipboard->Clear();
- clipboard->WriteText(text);
+ ScopedClipboardWriter scw(clipboard);
+ scw.WriteText(text);
}
void RenderViewContextMenuController::WriteURLToClipboard(const GURL& url) {
« no previous file with comments | « chrome/browser/download/download_util.cc ('k') | chrome/browser/resource_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698