Skip to content

Commit

Permalink
Remove unused function in browser_test_utils.cc
Browse files Browse the repository at this point in the history
Function GetEmbedderForGuest() is no longer used.

Bug: 1261928
Change-Id: I8b6f6280d8e2cc9d553a2e06727adbc70a7884bb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3934731
Commit-Queue: Antia Puentes <apuentes@igalia.com>
Reviewed-by: Alexander Timin <altimin@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1055797}
  • Loading branch information
antiapuentes authored and Chromium LUCI CQ committed Oct 6, 2022
1 parent a0e81c1 commit ff9f994
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions content/public/test/browser_test_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3865,11 +3865,6 @@ void UpdateUserActivationStateInterceptor::UpdateUserActivationState(
notification_type);
}

WebContents* GetEmbedderForGuest(content::WebContents* guest) {
CHECK(guest);
return static_cast<WebContentsImpl*>(guest)->GetOuterWebContents();
}

namespace {

int LoadBasicRequest(
Expand Down
2 changes: 0 additions & 2 deletions content/public/test/browser_test_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -2043,8 +2043,6 @@ class UpdateUserActivationStateInterceptor
bool update_user_activation_state_ = false;
};

WebContents* GetEmbedderForGuest(content::WebContents* guest);

// Load the given |url| with |network_context| and return the |net::Error| code.
//
// This overload simulates loading through a URLLoaderFactory created for a
Expand Down

0 comments on commit ff9f994

Please sign in to comment.