Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Unified Diff: content/test/content_browser_test_utils_internal.cc

Issue 1797363002: "Top Document Isolation" mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix up tests. Necessary rebase to obtain browsertest util behavior change. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/test/content_browser_test_utils_internal.cc
diff --git a/content/test/content_browser_test_utils_internal.cc b/content/test/content_browser_test_utils_internal.cc
index dad702ccd709105ec0488d78f59470ddc7e75abd..5d11f4503e65f212d8ed21c37a75f4a7d7e5b48b 100644
--- a/content/test/content_browser_test_utils_internal.cc
+++ b/content/test/content_browser_test_utils_internal.cc
@@ -210,9 +210,11 @@ std::string FrameTreeVisualizer::DepictFrameTree(FrameTreeNode* root) {
for (auto& legend_entry : legend) {
SiteInstanceImpl* site_instance =
static_cast<SiteInstanceImpl*>(legend_entry.second);
+ std::string description = site_instance->GetSiteURL().spec();
+ if (site_instance->is_default_subframe_site_instance())
+ description = "default subframe process";
base::StringAppendF(&result, "\n%s%s = %s", prefix,
- legend_entry.first.c_str(),
- site_instance->GetSiteURL().spec().c_str());
+ legend_entry.first.c_str(), description.c_str());
// Highlight some exceptionable conditions.
if (site_instance->active_frame_count() == 0)
result.append(" (active_frame_count == 0)");

Powered by Google App Engine
This is Rietveld 408576698