This requires a new method in ChangeNotes.Factory to get changes notes
by project.
CreateReviewNotes#createCodeReviewNote needs the change notes, so pass
in the change notes, instead of passing in the change and loading
the change notes a second time.
ChangeNotes.Factory doesn't support batch loading of changes yet. Due
to this batch loading changes still accesses the database directly
when notedb is disabled. For changes loaded in such a batch we want to
instantiate ChangeNotes without reloading the change. Add a special
method for this to ChangeNotes.Factory. This method is not supposed to
be used when notedb is enabled.
Change-Id: Ifd01276a607fb5ab4a36322112d0b7aaa0f0ff70
Signed-off-by: Edwin Kempin <ekempin@google.com>