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

Unified Diff: net/base/net_util.cc

Issue 260003: Move the clipboard stuff out of base and into app/clipboard. I renamed... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | « net/base/net_util.h ('k') | views/controls/message_box_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/net_util.cc
===================================================================
--- net/base/net_util.cc (revision 27849)
+++ net/base/net_util.cc (working copy)
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "net/base/net_util.h"
+
#include <algorithm>
#include <map>
#include <unicode/ucnv.h>
@@ -24,8 +26,6 @@
#include <fcntl.h>
#endif
-#include "net/base/net_util.h"
-
#include "base/basictypes.h"
#include "base/file_path.h"
#include "base/file_util.h"
@@ -33,7 +33,6 @@
#include "base/logging.h"
#include "base/message_loop.h"
#include "base/path_service.h"
-#include "base/scoped_clipboard_writer.h"
#include "base/singleton.h"
#include "base/stl_util-inl.h"
#include "base/string_escape.h"
@@ -1331,23 +1330,6 @@
return url_string;
}
-void WriteURLToClipboard(const GURL& url,
- const std::wstring& languages,
- Clipboard *clipboard) {
- if (url.is_empty() || !url.is_valid() || !clipboard)
- return;
-
- string16 text =
- // Unescaping path and query is not a good idea because other
- // applications may not encode non-ASCII characters in UTF-8.
- // See crbug.com/2820.
- WideToUTF16(FormatUrl(url, languages, false, UnescapeRule::NONE, NULL,
- NULL));
-
- ScopedClipboardWriter scw(clipboard);
- scw.WriteURL(text);
-}
-
GURL SimplifyUrlForRequest(const GURL& url) {
DCHECK(url.is_valid());
GURL::Replacements replacements;
« no previous file with comments | « net/base/net_util.h ('k') | views/controls/message_box_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698