| OLD | NEW |
| 1 The runtime library contains the implementation of the Web APK service. It | 1 The runtime library contains the implementation of the Web APK service. It |
| 2 implements functionality which Chrome delegates to the Web APK such as | 2 implements functionality which Chrome delegates to the Web APK such as |
| 3 displaying notifications. The library is loaded by a ShellAPK which | 3 displaying notifications. The library is loaded by a ShellAPK which |
| 4 contains the Web APK's manifest and code to load the runtime library. | 4 contains the Web APK's manifest and code to load the runtime library. |
| 5 | 5 |
| 6 The latest version of the runtime library is | 6 The latest version of the runtime library is |
| 7 extracted from Chrome's APK by the ShellAPK when the Web APK service is created. | 7 extracted from Chrome's APK by the ShellAPK when the Web APK service is created. |
| 8 Since the ShellAPK is updated asynchronously, the runtime library may run within | 8 Since the ShellAPK is updated asynchronously, the runtime library may run within |
| 9 an old ShellAPK. For instance, the ShellAPK's Android manifest may be missing | 9 an old ShellAPK. For instance, the ShellAPK's Android manifest may be missing |
| 10 some of the permissions that the runtime library is expecting. | 10 some of the permissions that the runtime library is expecting. |
| 11 | 11 |
| 12 As the runtime library code does not execute in any of Chrome's processes, and | 12 As the runtime library code does not execute in any of Chrome's processes, and |
| 13 runs in a separate application/process, it must not depend on anything in Chrome | 13 runs in a separate application/process, it must not depend on anything in Chrome |
| 14 including //base. | 14 including //base. |
| 15 | 15 |
| 16 The number in runtime_library_version.gni must be incremented whenever the | 16 The number in runtime_library_version.gni must be incremented whenever the |
| 17 runtime library is updated. The WebAPK re-extracts the runtime library from the | 17 runtime library is updated. The WebAPK re-extracts the runtime library from the |
| 18 Chrome APK when the version number is incremented. | 18 Chrome APK when the version number is incremented. |
| OLD | NEW |