summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cookies_tree_model.cc
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-29 07:21:13 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-29 07:21:13 +0000
commitf58330c4b964edd22ef02325390975a013a3f34a (patch)
tree15061bcc0ca596409a7113cde0bffc2b49206a0c /chrome/browser/cookies_tree_model.cc
parent82d76938133d016ac5d9cc4b56d603f96876e7f3 (diff)
downloadchromium_src-f58330c4b964edd22ef02325390975a013a3f34a.zip
chromium_src-f58330c4b964edd22ef02325390975a013a3f34a.tar.gz
chromium_src-f58330c4b964edd22ef02325390975a013a3f34a.tar.bz2
Don't show extension state in cookie tree list.
BUG=38659 TEST=Unit tests in browsing_data_local_storage_helper_unittest.cc and browsing_data_database_helper_unittest.cc Review URL: http://codereview.chromium.org/1405002 Patch from Mattias Nissler. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42935 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cookies_tree_model.cc')
-rw-r--r--chrome/browser/cookies_tree_model.cc24
1 files changed, 0 insertions, 24 deletions
diff --git a/chrome/browser/cookies_tree_model.cc b/chrome/browser/cookies_tree_model.cc
index 7fd0179..46dcb4c 100644
--- a/chrome/browser/cookies_tree_model.cc
+++ b/chrome/browser/cookies_tree_model.cc
@@ -499,8 +499,6 @@ void CookiesTreeModel::PopulateDatabaseInfoWithFilter(
std::wstring origin_node_name;
if (database_info->IsFileSchemeData())
origin_node_name = UTF8ToWide(kFileOriginNodeName);
- else if (database_info->IsExtensionSchemeData())
- origin_node_name = FormExtensionNodeName(database_info->host);
else
origin_node_name = UTF8ToWide(database_info->host);
@@ -538,8 +536,6 @@ void CookiesTreeModel::PopulateLocalStorageInfoWithFilter(
std::wstring origin_node_name;
if (local_storage_info->IsFileSchemeData())
origin_node_name = UTF8ToWide(kFileOriginNodeName);
- else if (local_storage_info->IsExtensionSchemeData())
- origin_node_name = FormExtensionNodeName(local_storage_info->host);
else
origin_node_name = UTF8ToWide(local_storage_info->host);
@@ -575,23 +571,3 @@ void CookiesTreeModel::NotifyObserverEndBatch() {
TreeModelEndBatch(this));
}
}
-
-std::wstring CookiesTreeModel::FormExtensionNodeName(
- const std::string& extension_id) {
- Extension* extension =
- profile_->GetExtensionsService()->GetExtensionById(extension_id, true);
- std::wstring extension_name = extension ?
- UTF8ToWide(extension->name()) :
- l10n_util::GetString(IDS_UNKNOWN_PLUGIN_NAME);
-
- // Since the extension_name will be concatenated with a prefix, we need
- // to explicitly set the extension_name to be LTR format if there is no
- // strong RTL charater in it. Otherwise, if the prefix is an RTL word,
- // the concatenated result might be wrong. For extension named
- // "Great Extension!" the concatenated result would be something like
- // "!Great Extension :NOISNETXE", in which capital letters "NOISNETXE"
- // stand for the Hebrew word for "extension".
- base::i18n::AdjustStringForLocaleDirection(extension_name, &extension_name);
- return l10n_util::GetStringF(IDS_TASK_MANAGER_EXTENSION_PREFIX,
- extension_name);
-}