From googleclient/chrome/chromium_gwsq/ipc/config.gwsq:
IPC: toyo...@chromium.org
📎 It looks like you’re making a possibly security-sensitive change! 📎 IPC security review isn’t a rubberstamp, so your friendly security reviewer will need a fair amount of context to review your CL effectively. Please review your CL description and code comments to make sure they provide context for someone unfamiliar with your project/area. Pay special attention to where data comes from and which processes it flows between (and their privilege levels). Feel free to point your security reviewer at design docs, bugs, or other links if you can’t reasonably make a self-contained CL description. (Also see https://cbea.ms/git-commit/).
IPC reviewer(s): toyo...@chromium.org
Reviewer source(s):
toyo...@chromium.org is from context(googleclient/chrome/chromium_gwsq/ipc/config.gwsq)
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
inline constexpr char kAILanguageTagEn[] = "en";
optional nit: duplicate and inline this in the `languageAvailable` functions of `ai_language_model_capabilities.cc` and `ai_summarizer_capabilities.cc`, to be more clearly removed with those deprecated functions.
AIAvailability availability;
nit: assign the default `kUnavailable` value on construction
if (result == mojom::blink::ModelAvailabilityCheckResult::kAvailable) {
nit: can this be a switch?
// https://github.com/webmachinelearning/prompt-api
static std::string GetAICapabilityAvailabilityMetricName(
This can be removed now if it's not called anymore.
AIAvailabilityToAICapabilityAvailability(
I think all the *Factory::availability() functions (writer, rewriter, summarizer, languageModel) can use the new enum straight away, right?
assert_true(availability !== 'unavailable');
optional nit: assert_not_equals
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
optional nit: duplicate and inline this in the `languageAvailable` functions of `ai_language_model_capabilities.cc` and `ai_summarizer_capabilities.cc`, to be more clearly removed with those deprecated functions.
I just remove the const and use "en" literal for those 2 methods to be removed.
nit: assign the default `kUnavailable` value on construction
Done
if (result == mojom::blink::ModelAvailabilityCheckResult::kAvailable) {
nit: can this be a switch?
Done
Done
static std::string GetAICapabilityAvailabilityMetricName(
This can be removed now if it's not called anymore.
Done
I think all the *Factory::availability() functions (writer, rewriter, summarizer, languageModel) can use the new enum straight away, right?
I was not very sure about the current plan for the other `availability()` method so just conservatively kept the old behavior, let me change them together in the follow up CL.
assert_true(availability !== 'unavailable');
Mingyu Leioptional nit: assert_not_equals
Resolved in another CL which cleans up many other `assert_true`s.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
ipc, blink, histograms lgtm
<owner>fer...@chromium.org</owner>
optional: You may specify a component's owner file, src/chrome/browser/ai/OWNERS, as the secondary or tertiary owner so that the information can be up-to-date semi-automatically.
Commit-Queue | +2 |
<owner>fer...@chromium.org</owner>
optional: You may specify a component's owner file, src/chrome/browser/ai/OWNERS, as the secondary or tertiary owner so that the information can be up-to-date semi-automatically.
Thanks! I will update all the histograms here in a separate CL.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Prompt API: rename availability enum values
Following the spec changes, this CL updates the enum value returned
by the new `availability()` API for the prompt API. The old
`capabilities()` API will remain unchanged for backward compatibility.
- readily -> available
- after-download -> downloadable
- no -> unavailable
The downloading state will be implemented in the later CL.
NO_IFTTT=false alarm
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |