Files
brave-core/patches/components-sessions-content-content_serialized_navigation_builder.cc.patch
cdesouza-chromium 7128c2ea48 [CodeHealth][plaster] Keep in chromium_src non-macro code (#36502)
This PR moves to `chromium_src` code that can live in there, and does
with no need for `#define` macro uses. This keeps plaster files shorter,
which reduces the noise in them, and it also permits C++ code to live
in C++ sources, that can benefit from code formatting, and DEPS
validation.
2026-05-18 23:51:45 +01:00

21 lines
885 B
Diff

diff --git a/components/sessions/content/content_serialized_navigation_builder.cc b/components/sessions/content/content_serialized_navigation_builder.cc
index a19395e46299c7c4cba3da7c7f635a2ad63e94d7..b59028cc2b70f70207206ec54b40309e2f27c702 100644
--- a/components/sessions/content/content_serialized_navigation_builder.cc
+++ b/components/sessions/content/content_serialized_navigation_builder.cc
@@ -65,6 +65,7 @@ ContentSerializedNavigationBuilder::FromNavigationEntry(
navigation.extended_info_map_[handler_entry.first] = value;
}
+ MaybeSaveStoragePartitionKey(entry, &navigation);
return navigation;
}
@@ -180,6 +181,7 @@ ContentSerializedNavigationBuilder::ToNavigationEntry(
DCHECK_EQ(SerializedNavigationEntry::STATE_INVALID,
navigation->blocked_state_);
+ MaybeRestoreStoragePartitionKey(navigation, entry.get());
return entry;
}