Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(504)

Unified Diff: components/html_viewer/html_document.cc

Issue 1172123002: Revert of html_viewer: Add DevToolsAgentImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/html_viewer/html_document.h ('k') | mandoline/app/android/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/html_document.cc
diff --git a/components/html_viewer/html_document.cc b/components/html_viewer/html_document.cc
index e03bad9830f8a54cf69c55073aae0d7ad822ee25..62ef9cb3e661b6ccd25c467a1196d7bafe9c9159 100644
--- a/components/html_viewer/html_document.cc
+++ b/components/html_viewer/html_document.cc
@@ -14,7 +14,6 @@
#include "base/thread_task_runner_handle.h"
#include "components/html_viewer/blink_input_events_type_converters.h"
#include "components/html_viewer/blink_url_request_type_converters.h"
-#include "components/html_viewer/devtools_agent_impl.h"
#include "components/html_viewer/media_factory.h"
#include "components/html_viewer/setup.h"
#include "components/html_viewer/web_layer_tree_view_impl.h"
@@ -222,13 +221,8 @@
touch_handler_.reset(new TouchHandler(web_view_));
web_layer_tree_view_impl_->set_widget(web_view_);
ConfigureSettings(web_view_->settings());
-
- blink::WebLocalFrame* main_frame =
- blink::WebLocalFrame::create(blink::WebTreeScopeType::Document, this);
- web_view_->setMainFrame(main_frame);
-
- devtools_agent_.reset(
- new DevToolsAgentImpl(main_frame, html_document_app_->shell()));
+ web_view_->setMainFrame(
+ blink::WebLocalFrame::create(blink::WebTreeScopeType::Document, this));
GURL url(response->url);
@@ -341,9 +335,6 @@
void HTMLDocument::frameDetached(blink::WebFrame* frame) {
if (frame->parent())
frame->parent()->removeChild(frame);
-
- if (devtools_agent_ && frame == devtools_agent_->frame())
- devtools_agent_.reset();
// |frame| is invalid after here.
frame->close();
« no previous file with comments | « components/html_viewer/html_document.h ('k') | mandoline/app/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698