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

Unified Diff: chrome/browser/bookmarks/bookmark_utils.cc

Issue 11827058: bookmarks: GetNameForURL() function is only used by gtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update os_exchange_data_win_unittest.cc Created 7 years, 11 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/browser/bookmarks/bookmark_utils.h ('k') | chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bookmarks/bookmark_utils.cc
diff --git a/chrome/browser/bookmarks/bookmark_utils.cc b/chrome/browser/bookmarks/bookmark_utils.cc
index 86d73520a2f9a10b702e69aa075605007a695946..329654e340d25d36c5b2006b4d64b2295b52e5e9 100644
--- a/chrome/browser/bookmarks/bookmark_utils.cc
+++ b/chrome/browser/bookmarks/bookmark_utils.cc
@@ -22,11 +22,9 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/pref_names.h"
#include "content/public/browser/user_metrics.h"
-#include "grit/ui_strings.h"
#include "net/base/net_util.h"
#include "ui/base/dragdrop/drag_drop_types.h"
#include "ui/base/events/event.h"
-#include "ui/base/l10n/l10n_util.h"
#include "ui/base/models/tree_node_iterator.h"
using base::Time;
@@ -276,14 +274,6 @@ bool CanPasteFromClipboard(const BookmarkNode* node) {
return BookmarkNodeData::ClipboardContainsBookmarks();
}
-string16 GetNameForURL(const GURL& url) {
- if (url.is_valid()) {
- return net::GetSuggestedFilename(url, "", "", "", "", std::string());
- } else {
- return l10n_util::GetStringUTF16(IDS_APP_UNTITLED_SHORTCUT_FILE_NAME);
- }
-}
-
// This is used with a tree iterator to skip subtrees which are not visible.
static bool PruneInvisibleFolders(const BookmarkNode* node) {
return !node->IsVisible();
« no previous file with comments | « chrome/browser/bookmarks/bookmark_utils.h ('k') | chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698