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

Unified Diff: tools/grit/grit/format/data_pack.py

Issue 7575017: Revert 95480 - Abstract fullscreen exit bubble logic to bring Linux's behaviour in line with (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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
« no previous file with comments | « tools/data_pack/data_pack.py ('k') | tools/grit/grit/format/data_pack_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/grit/grit/format/data_pack.py
===================================================================
--- tools/grit/grit/format/data_pack.py (revision 95481)
+++ tools/grit/grit/format/data_pack.py (working copy)
@@ -15,7 +15,7 @@
from grit.node import misc
-PACK_FILE_VERSION = 2
+PACK_FILE_VERSION = 1
class DataPack(interface.ItemFormatter):
@@ -60,13 +60,12 @@
ret.append(struct.pack("<II", PACK_FILE_VERSION, len(ids)))
HEADER_LENGTH = 2 * 4 # Two uint32s.
- # Each entry is 1 uint16 + 2 uint32s.
- index_length = len(ids) * (2 + 2 * 4)
+ index_length = len(ids) * 3 * 4 # Each entry is 3 uint32s.
# Write index.
data_offset = HEADER_LENGTH + index_length
for id in ids:
- ret.append(struct.pack("<HII", id, data_offset, len(resources[id])))
+ ret.append(struct.pack("<III", id, data_offset, len(resources[id])))
data_offset += len(resources[id])
# Write data.
« no previous file with comments | « tools/data_pack/data_pack.py ('k') | tools/grit/grit/format/data_pack_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698