Commit 0f7b9164 authored by Maksim Ivanov's avatar Maksim Ivanov Committed by Commit Bot

Fix use-after-move in //components/optimization_guide/

Fix use-after-move (potential) bugs found by the
"bugprone-use-after-move" clang-tidy check.

Bug: 1122844
Change-Id: I3f3dab82cb743c4033bb3c562f9a7767341a7e9b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2382113Reviewed-by: default avatarSophie Chang <sophiechang@chromium.org>
Commit-Queue: Maksim Ivanov <emaxx@chromium.org>
Cr-Commit-Position: refs/heads/master@{#802902}
parent 3299d79a
......@@ -1629,7 +1629,7 @@ TEST_F(OptimizationGuideStoreTest, FetchHintsPurgeExpiredFetchedHints) {
proto::Hint fetched_hint2;
fetched_hint2.set_key("domain3.org");
fetched_hint2.set_key_representation(proto::HOST);
fetched_hint1.mutable_max_cache_duration()->set_seconds(
fetched_hint2.mutable_max_cache_duration()->set_seconds(
base::TimeDelta::FromDays(7).InSeconds());
update_data->MoveHintIntoUpdateData(std::move(fetched_hint2));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment