Commit 6276e797 authored by Francois Doray's avatar Francois Doray Committed by Commit Bot

Remove unwanted logging from web_contents_modal_dialog_manager.cc.

The log statements were added by error by
https://chromium-review.googlesource.com/c/chromium/src/+/867511

TBR=wittman@chromium.org

Bug: 668690
Change-Id: Iefaa5d6cf254762230d8dd4bf04b903689d36777
Reviewed-on: https://chromium-review.googlesource.com/926782Reviewed-by: default avatarFrançois Doray <fdoray@chromium.org>
Reviewed-by: default avatarMike Wittman <wittman@chromium.org>
Commit-Queue: François Doray <fdoray@chromium.org>
Cr-Commit-Position: refs/heads/master@{#537821}
parent 7fa0c20b
......@@ -7,7 +7,6 @@
#include <algorithm>
#include <utility>
#include "base/debug/stack_trace.h"
#include "base/logging.h"
#include "components/web_modal/web_contents_modal_dialog_manager_delegate.h"
#include "content/public/browser/navigation_handle.h"
......@@ -47,11 +46,8 @@ void WebContentsModalDialogManager::ShowDialogWithManager(
if (child_dialogs_.size() == 1) {
BlockWebContentsInteraction(true);
if (delegate_ && delegate_->IsWebContentsVisible(web_contents())) {
LOG(ERROR) << "Initial show";
base::debug::StackTrace().Print();
if (delegate_ && delegate_->IsWebContentsVisible(web_contents()))
child_dialogs_.back().manager->Show();
}
}
}
......@@ -168,15 +164,10 @@ void WebContentsModalDialogManager::OnVisibilityChanged(
return;
}
if (web_contents_is_hidden_) {
LOG(ERROR) << "Hide";
base::debug::StackTrace().Print();
if (web_contents_is_hidden_)
child_dialogs_.front().manager->Hide();
} else {
LOG(ERROR) << "Show";
base::debug::StackTrace().Print();
else
child_dialogs_.front().manager->Show();
}
}
void WebContentsModalDialogManager::WebContentsDestroyed() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment