This will make it harder to misuse a PromiseResolver by assigning those variables after constrution.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/e957950d791bd6eafddc9caed457119bcc94c53d commit e957950d791bd6eafddc9caed457119bcc94c53d Author: dbeam <dbeam@chromium.org> Date: Sat Apr 09 06:40:19 2016 Make PromiseResolver's members read-only R=dpapad@chromium.org BUG= 601916 Review URL: https://codereview.chromium.org/1871043004 Cr-Commit-Position: refs/heads/master@{#386287} [add] https://crrev.com/e957950d791bd6eafddc9caed457119bcc94c53d/chrome/test/data/webui/promise_resolver_test.html [modify] https://crrev.com/e957950d791bd6eafddc9caed457119bcc94c53d/chrome/test/data/webui/webui_resource_browsertest.cc [modify] https://crrev.com/e957950d791bd6eafddc9caed457119bcc94c53d/third_party/closure_compiler/compiler_test.py [modify] https://crrev.com/e957950d791bd6eafddc9caed457119bcc94c53d/ui/webui/resources/html/promise_resolver.html [modify] https://crrev.com/e957950d791bd6eafddc9caed457119bcc94c53d/ui/webui/resources/js/compiled_resources2.gyp [modify] https://crrev.com/e957950d791bd6eafddc9caed457119bcc94c53d/ui/webui/resources/js/promise_resolver.js
Comment 1 by dpa...@chromium.org
, Apr 8 2016