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 @@ ...@@ -7,7 +7,6 @@
#include <algorithm> #include <algorithm>
#include <utility> #include <utility>
#include "base/debug/stack_trace.h"
#include "base/logging.h" #include "base/logging.h"
#include "components/web_modal/web_contents_modal_dialog_manager_delegate.h" #include "components/web_modal/web_contents_modal_dialog_manager_delegate.h"
#include "content/public/browser/navigation_handle.h" #include "content/public/browser/navigation_handle.h"
...@@ -47,11 +46,8 @@ void WebContentsModalDialogManager::ShowDialogWithManager( ...@@ -47,11 +46,8 @@ void WebContentsModalDialogManager::ShowDialogWithManager(
if (child_dialogs_.size() == 1) { if (child_dialogs_.size() == 1) {
BlockWebContentsInteraction(true); BlockWebContentsInteraction(true);
if (delegate_ && delegate_->IsWebContentsVisible(web_contents())) { if (delegate_ && delegate_->IsWebContentsVisible(web_contents()))
LOG(ERROR) << "Initial show";
base::debug::StackTrace().Print();
child_dialogs_.back().manager->Show(); child_dialogs_.back().manager->Show();
}
} }
} }
...@@ -168,15 +164,10 @@ void WebContentsModalDialogManager::OnVisibilityChanged( ...@@ -168,15 +164,10 @@ void WebContentsModalDialogManager::OnVisibilityChanged(
return; return;
} }
if (web_contents_is_hidden_) { if (web_contents_is_hidden_)
LOG(ERROR) << "Hide";
base::debug::StackTrace().Print();
child_dialogs_.front().manager->Hide(); child_dialogs_.front().manager->Hide();
} else { else
LOG(ERROR) << "Show";
base::debug::StackTrace().Print();
child_dialogs_.front().manager->Show(); child_dialogs_.front().manager->Show();
}
} }
void WebContentsModalDialogManager::WebContentsDestroyed() { 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