Clean up unneeded JavaScript dialog parameter.
Removes a parameter unneeded after https://codereview.chromium.org/2641173004.
BUG=682060
TEST=none
Review-Url: https://codereview.chromium.org/2639893002
Cr-Commit-Position: refs/heads/master@{#445273}
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 6bf87642..95a4592 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -514,10 +514,7 @@
// Clear out any JavaScript state.
if (dialog_manager_) {
- // This object is being destructed, so make sure that no callbacks happen.
- dialog_manager_->CancelDialogs(this,
- true, // suppress_callbacks,
- true); // reset_state
+ dialog_manager_->CancelDialogs(this, /*reset_state=*/true);
}
if (color_chooser_info_.get())
@@ -898,9 +895,7 @@
void WebContentsImpl::CancelActiveAndPendingDialogs() {
if (dialog_manager_) {
- dialog_manager_->CancelDialogs(this,
- false, // suppress_callbacks,
- false); // reset_state
+ dialog_manager_->CancelDialogs(this, /*reset_state=*/false);
}
if (browser_plugin_embedder_)
browser_plugin_embedder_->CancelGuestDialogs();
@@ -3471,9 +3466,7 @@
// If this is a user-initiated navigation, start allowing JavaScript dialogs
// again.
if (params.gesture == NavigationGestureUser && dialog_manager_) {
- dialog_manager_->CancelDialogs(this,
- false, // suppress_callbacks,
- true); // reset_state
+ dialog_manager_->CancelDialogs(this, /*reset_state=*/true);
}
// Notify observers about navigation.
@@ -4950,9 +4943,7 @@
// cross-process navigation will either destroy the browser plugins or not
// require their dialogs to close.
if (dialog_manager_) {
- dialog_manager_->CancelDialogs(this,
- false, // suppress_callbacks,
- true); // reset_state
+ dialog_manager_->CancelDialogs(this, /*reset_state=*/true);
}
}