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

Unified Diff: chrome/common/net/url_util.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 | « chrome/common/net/url_util.h ('k') | components/bookmarks/browser/bookmark_node_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/net/url_util.cc
diff --git a/chrome/common/net/url_util.cc b/chrome/common/net/url_util.cc
index 2bc7a11db45ce1efdefa1c78e8e124dba83027a1..9a62afdab6855fbe6bd705db2e0ea7f05101f602 100644
--- a/chrome/common/net/url_util.cc
+++ b/chrome/common/net/url_util.cc
@@ -13,10 +13,8 @@
namespace chrome_common_net {
-void WriteURLToClipboard(const GURL& url,
- const std::string& languages,
- ui::Clipboard *clipboard) {
- if (url.is_empty() || !url.is_valid() || !clipboard)
+void WriteURLToClipboard(const GURL& url, const std::string& languages) {
+ if (url.is_empty() || !url.is_valid())
return;
// Unescaping path and query is not a good idea because other applications
@@ -26,7 +24,7 @@ void WriteURLToClipboard(const GURL& url,
net::FormatUrl(url, languages, net::kFormatUrlOmitNothing,
net::UnescapeRule::NONE, NULL, NULL, NULL);
- ui::ScopedClipboardWriter scw(clipboard, ui::CLIPBOARD_TYPE_COPY_PASTE);
+ ui::ScopedClipboardWriter scw(ui::CLIPBOARD_TYPE_COPY_PASTE);
scw.WriteURL(text);
}
« no previous file with comments | « chrome/common/net/url_util.h ('k') | components/bookmarks/browser/bookmark_node_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698