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

Unified Diff: chrome/browser/ui/views/appcache_info_view.cc

Issue 10332211: views: Remove appcache_info_view* and generic_info_view* files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
« no previous file with comments | « chrome/browser/ui/views/appcache_info_view.h ('k') | chrome/browser/ui/views/generic_info_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/appcache_info_view.cc
diff --git a/chrome/browser/ui/views/appcache_info_view.cc b/chrome/browser/ui/views/appcache_info_view.cc
deleted file mode 100644
index b4add97a166dfbd8fe7a08d5777fc46f91447c31..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/appcache_info_view.cc
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) 2011 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.
-
-#include "chrome/browser/ui/views/appcache_info_view.h"
-
-#include "base/i18n/time_formatting.h"
-#include "base/string_util.h"
-#include "base/utf_string_conversions.h"
-#include "grit/generated_resources.h"
-#include "ui/base/text/bytes_formatting.h"
-
-namespace {
-const int kInfoLabelIds[] = {
- IDS_COOKIES_APPLICATION_CACHE_MANIFEST_LABEL,
- IDS_COOKIES_SIZE_LABEL,
- IDS_COOKIES_COOKIE_CREATED_LABEL,
- IDS_COOKIES_LAST_ACCESSED_LABEL
-};
-} // namespace
-
-AppCacheInfoView::AppCacheInfoView()
- : GenericInfoView(ARRAYSIZE(kInfoLabelIds), kInfoLabelIds) {
-}
-
-void AppCacheInfoView::SetAppCacheInfo(const appcache::AppCacheInfo* info) {
- DCHECK(info);
- string16 manifest_url =
- UTF8ToUTF16(info->manifest_url.spec());
- string16 size =
- ui::FormatBytes(info->size);
- string16 creation_date =
- base::TimeFormatFriendlyDateAndTime(info->creation_time);
- string16 last_access_date =
- base::TimeFormatFriendlyDateAndTime(info->last_access_time);
- int row = 0;
- SetValue(row++, manifest_url);
- SetValue(row++, size);
- SetValue(row++, creation_date);
- SetValue(row++, last_access_date);
-}
« no previous file with comments | « chrome/browser/ui/views/appcache_info_view.h ('k') | chrome/browser/ui/views/generic_info_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698