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

Unified Diff: chrome/browser/ui/webui/cookies_tree_model_util.cc

Issue 2230203002: chrome: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed accidental components/ change Created 4 years, 4 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
Index: chrome/browser/ui/webui/cookies_tree_model_util.cc
diff --git a/chrome/browser/ui/webui/cookies_tree_model_util.cc b/chrome/browser/ui/webui/cookies_tree_model_util.cc
index a1cef917ef870316d7414cfebe3c3f343cf7d843..afacc2b1d394351d7d76f73b44aaa34950097365 100644
--- a/chrome/browser/ui/webui/cookies_tree_model_util.cc
+++ b/chrome/browser/ui/webui/cookies_tree_model_util.cc
@@ -201,18 +201,18 @@ bool CookiesTreeModelUtil::GetCookieTreeNodeDictionary(
const storage::FileSystemType kTemp = storage::kFileSystemTypeTemporary;
dict->SetString(kKeyOrigin, file_system_info.origin.spec());
- dict->SetString(kKeyPersistent,
- ContainsKey(file_system_info.usage_map, kPerm) ?
- base::UTF16ToUTF8(ui::FormatBytes(
- file_system_info.usage_map.find(kPerm)->second)) :
- l10n_util::GetStringUTF8(
- IDS_COOKIES_FILE_SYSTEM_USAGE_NONE));
- dict->SetString(kKeyTemporary,
- ContainsKey(file_system_info.usage_map, kTemp) ?
- base::UTF16ToUTF8(ui::FormatBytes(
- file_system_info.usage_map.find(kTemp)->second)) :
- l10n_util::GetStringUTF8(
- IDS_COOKIES_FILE_SYSTEM_USAGE_NONE));
+ dict->SetString(
+ kKeyPersistent,
+ base::ContainsKey(file_system_info.usage_map, kPerm)
+ ? base::UTF16ToUTF8(ui::FormatBytes(
+ file_system_info.usage_map.find(kPerm)->second))
+ : l10n_util::GetStringUTF8(IDS_COOKIES_FILE_SYSTEM_USAGE_NONE));
+ dict->SetString(
+ kKeyTemporary,
+ base::ContainsKey(file_system_info.usage_map, kTemp)
+ ? base::UTF16ToUTF8(ui::FormatBytes(
+ file_system_info.usage_map.find(kTemp)->second))
+ : l10n_util::GetStringUTF8(IDS_COOKIES_FILE_SYSTEM_USAGE_NONE));
break;
}
case CookieTreeNode::DetailedInfo::TYPE_QUOTA: {
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/l10n_util.cc ('k') | chrome/browser/ui/webui/extensions/extension_icon_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698