Bug 1523638 - Part 8: Remove unused arguments from nsDocShell::Embed(), r=bzbarsky

Differential Revision: https://phabricator.services.mozilla.com/D37655
This commit is contained in:
Nika Layzell
2019-07-16 18:47:54 +00:00
parent 4778e32955
commit 02d7cb9efb
2 changed files with 4 additions and 6 deletions

View File

@@ -6365,8 +6365,7 @@ nsresult nsDocShell::RefreshURIFromQueue() {
return NS_OK;
}
nsresult nsDocShell::Embed(nsIContentViewer* aContentViewer,
const char* aCommand, nsISupports* aExtraInfo) {
nsresult nsDocShell::Embed(nsIContentViewer* aContentViewer) {
// Save the LayoutHistoryState of the previous document, before
// setting up new document
PersistLayoutHistoryState();
@@ -7181,7 +7180,7 @@ nsresult nsDocShell::CreateAboutBlankContentViewer(
// hook 'em up
if (viewer) {
viewer->SetContainer(this);
rv = Embed(viewer, "", 0);
rv = Embed(viewer);
NS_ENSURE_SUCCESS(rv, rv);
SetCurrentURI(blankDoc->GetDocumentURI(), nullptr, true, 0);
@@ -8338,7 +8337,7 @@ nsresult nsDocShell::CreateContentViewer(const nsACString& aContentType,
}
}
NS_ENSURE_SUCCESS(Embed(viewer, "", nullptr), NS_ERROR_FAILURE);
NS_ENSURE_SUCCESS(Embed(viewer), NS_ERROR_FAILURE);
if (TreatAsBackgroundLoad()) {
nsCOMPtr<nsIRunnable> triggerParentCheckDocShell =