[Extensions] Case insensitive api_call filtering in the activity log DB

Currently, the activity log API filters the api_name field using case
sensitive string equality if a filter for api_name is provided for
chrome.activityLogPrivate.getExtensionActivities. This CL changes
the matching scheme to be a case insensitive prefix match, similar to
what is used for the page_url and arg_url fields. This should make the
activity log easier to use when a user is filtering by specific api
calls.

Bug: 832354
Change-Id: I725542657a5879141426f621631ec69ccd88af9e
Reviewed-on: https://chromium-review.googlesource.com/c/1371187
Commit-Queue: Kelvin Jiang <kelvinjiang@chromium.org>
Reviewed-by: Devlin <rdevlin.cronin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#615400}
4 files changed