commit | 847a9780985f07a8e4c289c4bf787cbecfde8d03 | [log] [tgz] |
---|---|---|
author | Terry Wang <tytytyww@google.com> | Fri Dec 04 18:03:06 2020 -0800 |
committer | Terry Wang <tytytyww@google.com> | Mon Dec 07 19:49:38 2020 -0800 |
tree | 66c8b75999d842413f31bb25d6a4da5ce230e0d9 | |
parent | e189348c28084afc9f367d634aec5e13cb9a8aef [diff] |
Split getInstance and createInstance in AppSearchImpl User could never call an uninitialized SearchSession, so convert and propagate the initialize error in getInstace to user for every call is unnecessary. Split createInstace for initialization, and getInstance for other calls. Removed AppSearchException from getInstace's signature. Test: presubmit Bug: 162450968 Change-Id: I925506ad0f6540b060c77ed2a535737ee71f781c