summaryrefslogtreecommitdiffstats
path: root/chrome/browser/bookmarks
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-12 18:03:41 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-12 18:03:41 +0000
commitbbbc1ef9d160f602aed88ed2eecd6063e5952ca7 (patch)
tree256e507e11d22bc154edcef45746ee38b8d1a64e /chrome/browser/bookmarks
parenta1ff529fcffcded364926b58c1f2c8afc839adeb (diff)
downloadchromium_src-bbbc1ef9d160f602aed88ed2eecd6063e5952ca7.zip
chromium_src-bbbc1ef9d160f602aed88ed2eecd6063e5952ca7.tar.gz
chromium_src-bbbc1ef9d160f602aed88ed2eecd6063e5952ca7.tar.bz2
Use TabContents::GetDefaultTitle() everywhere we need a title for an untitled tab/page. This will let us remove a couple of duplicate strings.
BUG=none TEST=none Review URL: http://codereview.chromium.org/604021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38902 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/bookmarks')
-rw-r--r--chrome/browser/bookmarks/bookmark_utils.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/bookmarks/bookmark_utils.cc b/chrome/browser/bookmarks/bookmark_utils.cc
index c6f82b3..accec3c 100644
--- a/chrome/browser/bookmarks/bookmark_utils.cc
+++ b/chrome/browser/bookmarks/bookmark_utils.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -258,7 +258,7 @@ int PerformBookmarkDrop(Profile* profile,
// No title, use the host.
title = UTF8ToUTF16(data.elements[0].url.host());
if (title.empty())
- title = l10n_util::GetStringUTF16(IDS_BOOMARK_BAR_UNKNOWN_DRAG_TITLE);
+ title = TabContents::GetDefaultTitle();
}
model->AddURL(parent_node, index, title, data.elements[0].url);
return DragDropTypes::DRAG_COPY | DragDropTypes::DRAG_LINK;