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

Unified Diff: chrome/browser/ui/webui/options/cookies_view_handler.cc

Issue 7387007: Adding usage and quota entry to chrome://settings/cookies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 5 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/options/cookies_view_handler.cc
diff --git a/chrome/browser/ui/webui/options/cookies_view_handler.cc b/chrome/browser/ui/webui/options/cookies_view_handler.cc
index b2c1c7cc2ec7ca6c1255e986b7ba81cf95843dd9..6ed05b80eaf284fc8fd81feb794e3ad7bb167100 100644
--- a/chrome/browser/ui/webui/options/cookies_view_handler.cc
+++ b/chrome/browser/ui/webui/options/cookies_view_handler.cc
@@ -10,6 +10,7 @@
#include "chrome/browser/browsing_data_database_helper.h"
#include "chrome/browser/browsing_data_file_system_helper.h"
#include "chrome/browser/browsing_data_indexed_db_helper.h"
+#include "chrome/browser/browsing_data_quota_helper.h"
#include "chrome/browser/browsing_data_local_storage_helper.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/webui/cookies_tree_model_util.h"
@@ -52,6 +53,7 @@ void CookiesViewHandler::GetLocalizedValues(
{ "label_cookie_last_accessed", IDS_COOKIES_LAST_ACCESSED_LABEL },
{ "cookie_domain", IDS_COOKIES_DOMAIN_COLUMN_HEADER },
{ "cookie_local_data", IDS_COOKIES_DATA_COLUMN_HEADER },
+ { "cookie_data_size", IDS_COOKIES_SIZE_COLUMN_HEADER },
{ "cookie_singular", IDS_COOKIES_SINGLE_COOKIE },
{ "cookie_plural", IDS_COOKIES_PLURAL_COOKIES },
{ "cookie_database_storage", IDS_COOKIES_DATABASE_STORAGE },
@@ -151,6 +153,7 @@ void CookiesViewHandler::EnsureCookiesTreeModelCreated() {
new BrowsingDataAppCacheHelper(profile),
BrowsingDataIndexedDBHelper::Create(profile),
BrowsingDataFileSystemHelper::Create(profile),
+ BrowsingDataQuotaHelper::Create(profile),
false));
cookies_tree_model_->AddCookiesTreeObserver(this);
}

Powered by Google App Engine
This is Rietveld 408576698