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

Side by Side Diff: ui/base/resource/data_pack_literal.cc

Issue 537063002: Eliminate silently letting errors pass on pak loading. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ios finally works Created 6 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 6
7 namespace ui { 7 namespace ui {
8 8
9 extern const char kSamplePakContents[] = { 9 extern const char kSamplePakContents[] = {
10 0x04, 0x00, 0x00, 0x00, // header(version 10 0x04, 0x00, 0x00, 0x00, // header(version
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 0x04, 0x00, 0x15, 0x00, 0x00, 0x00, // index entry 4 44 0x04, 0x00, 0x15, 0x00, 0x00, 0x00, // index entry 4
45 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, // extra entry for the size of last 45 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, // extra entry for the size of last
46 't', 'h', 'i', 's', ' ', 'i', 's', ' ', 'i', 'd', ' ', '4', ' ', '2', 'x' 46 't', 'h', 'i', 's', ' ', 'i', 's', ' ', 'i', 'd', ' ', '4', ' ', '2', 'x'
47 }; 47 };
48 48
49 extern const size_t kSamplePakSize2x = sizeof(kSamplePakContents2x); 49 extern const size_t kSamplePakSize2x = sizeof(kSamplePakContents2x);
50 50
51 extern const char kEmptyPakContents[] = { 51 extern const char kEmptyPakContents[] = {
52 0x04, 0x00, 0x00, 0x00, // header(version 52 0x04, 0x00, 0x00, 0x00, // header(version
53 0x00, 0x00, 0x00, 0x00, // no. entries 53 0x00, 0x00, 0x00, 0x00, // no. entries
54 0x01 54 0x01, // encoding)
55 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00 // extra entry for the size of last
55 }; 56 };
56 57
57 extern const size_t kEmptyPakSize = sizeof(kEmptyPakContents); 58 extern const size_t kEmptyPakSize = sizeof(kEmptyPakContents);
58 59
59 } // namespace ui 60 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698