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

Side by Side Diff: webkit/appcache/view_appcache_internals_job.cc

Issue 7189076: Localize strings, speeds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright dates Created 9 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 unified diff | Download patch | Annotate | Revision Log
« base/string_util.h ('K') | « ui/ui_unittests.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <algorithm> 5 #include <algorithm>
6 6
7 #include "webkit/appcache/view_appcache_internals_job.h" 7 #include "webkit/appcache/view_appcache_internals_job.h"
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/format_macros.h" 11 #include "base/format_macros.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 out->append(anchored_manifest); 109 out->append(anchored_manifest);
110 if (!appcache_service.appcache_policy()->CanLoadAppCache( 110 if (!appcache_service.appcache_policy()->CanLoadAppCache(
111 info->manifest_url)) { 111 info->manifest_url)) {
112 out->append(kFormattedDisabledAppCacheMsg); 112 out->append(kFormattedDisabledAppCacheMsg);
113 } 113 }
114 out->append("<br/>"); 114 out->append("<br/>");
115 DrawCommandButton(kRemoveAppCache, manifest_url_base64, out); 115 DrawCommandButton(kRemoveAppCache, manifest_url_base64, out);
116 out->append("<ul>"); 116 out->append("<ul>");
117 117
118 AddLiTag(kSize, 118 AddLiTag(kSize,
119 UTF16ToUTF8(FormatBytes( 119 UTF16ToUTF8(FormatBytesUnlocalized(info->size)),
120 info->size, GetByteDisplayUnits(info->size), true)),
121 out); 120 out);
122 AddLiTag(kCreationTime, 121 AddLiTag(kCreationTime,
123 UTF16ToUTF8(TimeFormatFriendlyDateAndTime(info->creation_time)), 122 UTF16ToUTF8(TimeFormatFriendlyDateAndTime(info->creation_time)),
124 out); 123 out);
125 AddLiTag(kLastAccessTime, 124 AddLiTag(kLastAccessTime,
126 UTF16ToUTF8(TimeFormatFriendlyDateAndTime(info->last_access_time)), 125 UTF16ToUTF8(TimeFormatFriendlyDateAndTime(info->last_access_time)),
127 out); 126 out);
128 AddLiTag(kLastUpdateTime, 127 AddLiTag(kLastUpdateTime,
129 UTF16ToUTF8(TimeFormatFriendlyDateAndTime(info->last_update_time)), 128 UTF16ToUTF8(TimeFormatFriendlyDateAndTime(info->last_update_time)),
130 out); 129 out);
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 data->append(kErrorMessage); 258 data->append(kErrorMessage);
260 else if (info_collection_->infos_by_origin.empty()) 259 else if (info_collection_->infos_by_origin.empty())
261 data->append(kEmptyAppCachesMessage); 260 data->append(kEmptyAppCachesMessage);
262 else 261 else
263 GenerateHTMLAppCacheInfo(data); 262 GenerateHTMLAppCacheInfo(data);
264 EndHTML(data); 263 EndHTML(data);
265 return true; 264 return true;
266 } 265 }
267 266
268 } // namespace appcache 267 } // namespace appcache
OLDNEW
« base/string_util.h ('K') | « ui/ui_unittests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698