Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
Owners-Override | +1 |
LGTM
base::WriteJson(base::Value(std::move(result))).value_or("");
This should work:
```suggestion
base::WriteJson(result).value_or("");
```
base::WriteJson(base::Value(std::move(response))).value_or(""));
```suggestion
base::WriteJson(response).value_or(""));
```
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Commit-Queue | +1 |
base::WriteJson(base::Value(std::move(result))).value_or("");
This should work:
```suggestion
base::WriteJson(result).value_or("");
```
Fix applied.
Yes, I'm aware of this. I'm just trying to have the AI do these transformations mechanically and was going to do a separate pass to simplify. But since the suggested edits are here, I applied them.
base::WriteJson(base::Value(std::move(response))).value_or(""));
Lei Zhang```suggestion
base::WriteJson(response).value_or(""));
```
Fix applied.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
1 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: chrome/test/chromedriver/chrome/devtools_client_impl_unittest.cc
Insertions: 2, Deletions: 4.
@@ -471,8 +471,7 @@
base::Value::Dict result;
ASSERT_TRUE(
StatusOk(client.SendCommandAndGetResult("method", params, &result)));
- std::string json =
- base::WriteJson(base::Value(std::move(result))).value_or("");
+ std::string json = base::WriteJson(result).value_or("");
ASSERT_STREQ("{\"param\":1}", json.c_str());
}
@@ -1557,8 +1556,7 @@
base::Value::Dict response;
response.Set("id", cmd_id);
response.Set("result", base::Value::Dict());
- queued_response_.push(
- base::WriteJson(base::Value(std::move(response))).value_or(""));
+ queued_response_.push(base::WriteJson(response).value_or(""));
// Push one event.
base::Value::Dict event;
```
Remove various deprecated base::JSONWriter::Write() calls
Mechanically switch from base::JSONWriter::Write() to base::WriteJson()
for callers that did not check the return value. Keep the existing
behavior and return an empty string on failure.
This CL was initially AI generated, with human touch-ups. Based on
https://crrev.com/1511773.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |