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

Unified Diff: third_party/WebKit/Source/platform/text/CharacterPropertyDataGenerator.cpp

Issue 2608823002: Move blink::serializedCharacterData array to read-only data segment (Closed)
Patch Set: Might as well mark serializedCharacterDataSize as const also Created 4 years 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 | « third_party/WebKit/Source/platform/text/Character.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/text/CharacterPropertyDataGenerator.cpp
diff --git a/third_party/WebKit/Source/platform/text/CharacterPropertyDataGenerator.cpp b/third_party/WebKit/Source/platform/text/CharacterPropertyDataGenerator.cpp
index 45cad2f2457a9baa0885f7b1faf2189cb72f80a6..57d6358805524d39c85839fd66d1c00b2e2fd3f0 100644
--- a/third_party/WebKit/Source/platform/text/CharacterPropertyDataGenerator.cpp
+++ b/third_party/WebKit/Source/platform/text/CharacterPropertyDataGenerator.cpp
@@ -54,8 +54,8 @@ static void generateUTrieSerialized(FILE* fp, int32_t size, uint8_t* array) {
fprintf(fp,
"#include <cstdint>\n\n"
"namespace blink {\n\n"
- "int32_t serializedCharacterDataSize = %d;\n"
- "uint8_t serializedCharacterData[] = {",
+ "extern const int32_t serializedCharacterDataSize = %d;\n"
+ "extern const uint8_t serializedCharacterData[] = {",
size);
for (int32_t i = 0; i < size;) {
fprintf(fp, "\n ");
« no previous file with comments | « third_party/WebKit/Source/platform/text/Character.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698