Commit 952af868 authored by Katie D's avatar Katie D Committed by Commit Bot

Remove dlog lines for debugging flaky tests.

These are no longer needed.

AX-Relnotes: N/A
Change-Id: I7804e2f9f49391b2781523245e685a2e187b7463
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2245895
Auto-Submit: Katie Dektar <katie@chromium.org>
Commit-Queue: Wei-Yin Chen (陳威尹) <wychen@chromium.org>
Reviewed-by: default avatarWei-Yin Chen (陳威尹) <wychen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#779220}
parent 1686fc27
......@@ -27,24 +27,14 @@ void DistillerJsRenderFrameObserver::DidStartNavigation(
const GURL& url,
base::Optional<blink::WebNavigationType> navigation_type) {
is_distiller_page_ = url_utils::IsDistilledPage(url);
// TODO(crbug.com/1064776): DLOG here and below to debug a flaky test where
// the Javascript distiller object does not seem to be injected.
DLOG(WARNING) << "DistillerJsRenderFrameObserver::DidStartNavigation is "
<< (is_distiller_page_ ? "" : "not ") << "distilled page.";
}
void DistillerJsRenderFrameObserver::DidCreateScriptContext(
v8::Local<v8::Context> context,
int32_t world_id) {
if (world_id != distiller_isolated_world_id_ || !is_distiller_page_) {
DLOG(WARNING) << "DistillerJsRenderFrameObserver::DidCreateScriptContext "
"returning early, is "
<< (is_distiller_page_ ? "" : "not ") << "distilled page.";
if (world_id != distiller_isolated_world_id_ || !is_distiller_page_)
return;
}
DLOG(WARNING)
<< "DistillerJsRenderFrameObserver::DidCreateScriptContext injecting JS.";
native_javascript_handle_.reset(
new DistillerNativeJavaScript(render_frame()));
native_javascript_handle_->AddJavaScriptObjectToFrame(context);
......
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