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

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

Issue 10536017: Refactoring CookiesTreeModel to support multiple data sources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes for commes by James and Evan. Created 8 years, 6 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 eb44d6eaf49089967394677774327df9611f8d76..8f9e008ada32684d2568ff12e49ad1f83add45a3 100644
--- a/chrome/browser/ui/webui/cookies_tree_model_util.cc
+++ b/chrome/browser/ui/webui/cookies_tree_model_util.cc
@@ -22,6 +22,8 @@ static const char kKeyIcon[] = "icon";
static const char kKeyType[] = "type";
static const char kKeyHasChildren[] = "hasChildren";
+static const char kKeyAppId[] = "appId";
+
static const char kKeyName[] = "name";
static const char kKeyContent[] = "content";
static const char kKeyDomain[] = "domain";
@@ -101,6 +103,12 @@ bool GetCookieTreeNodeDictionary(const CookieTreeNode& node,
#endif
break;
}
+ case CookieTreeNode::DetailedInfo::TYPE_APP: {
+ dict->SetString(kKeyType, "app");
+ dict->SetString(kKeyName, node.GetDetailedInfo().app_name);
+ dict->SetString(kKeyAppId, node.GetDetailedInfo().app_id);
+ break;
+ }
case CookieTreeNode::DetailedInfo::TYPE_COOKIE: {
dict->SetString(kKeyType, "cookie");
dict->SetString(kKeyIcon, "chrome://theme/IDR_COOKIE_ICON");
« no previous file with comments | « chrome/browser/ui/views/collected_cookies_views.cc ('k') | chrome/browser/ui/webui/options2/cookies_view_handler2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698