[Ext] Cosmetic code: Remove escaping " and \ in generated_schemas
Use raw string literals instead to avoid hurting readers' eyes (note: no one should read them though). For example, this CL turns const char kUsb[] = "{\"functions\":[{\"parameters\":[{\"$ref\":... to const char kUsb[] = R"R({"functions":[{"parameters":[{"$ref":... in gen/extensions/common/api/generated_schemas.cc This makes generated .cc file size slightly smaller: e.g. in linux cros build, the sizes in bytes are (before->after): gen/chrome/../apps/platform_apps/../generated_schemas.cc 14137 -> 12396 gen/chrome/../extensions/../generated_schemas.cc 426698 -> 367237 gen/extensions/../generated_schemas.cc 369079 -> 318170 gen/extensions/shell/../generated_schemas.cc 1632 -> 1535 Note that this should not have any impact on binary size. Bug: None Test: None, no visible changes expected. Change-Id: I432c510396ead6e86fae71f63a3e2c099420b485 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2133658Reviewed-by:Devlin <rdevlin.cronin@chromium.org> Commit-Queue: Istiaque Ahmed <lazyboy@chromium.org> Cr-Commit-Position: refs/heads/master@{#755987}
Showing
Please register or sign in to comment