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

Unified Diff: ash/shell.cc

Issue 2899783002: Move DevTools out of ash and turn it to a component. (Closed)
Patch Set: add README.md Created 3 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 | « ash/shell.h ('k') | chrome/browser/about_flags.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index e7e58d454ad2dbda5ea3c06a0f7bb4fb81ef8b5b..a47172b22adc479502f789bc9f1c0f5dbdcde34d 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -20,8 +20,6 @@
#include "ash/aura/shell_port_classic.h"
#include "ash/autoclick/autoclick_controller.h"
#include "ash/cast_config_controller.h"
-#include "ash/devtools/ash_devtools_css_agent.h"
-#include "ash/devtools/ash_devtools_dom_agent.h"
#include "ash/display/ash_display_controller.h"
#include "ash/display/cursor_window_controller.h"
#include "ash/display/display_color_manager_chromeos.h"
@@ -133,6 +131,8 @@
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
#include "components/ui_devtools/devtools_server.h"
+#include "components/ui_devtools/views/ui_devtools_css_agent.h"
+#include "components/ui_devtools/views/ui_devtools_dom_agent.h"
#include "services/preferences/public/cpp/pref_service_factory.h"
#include "services/preferences/public/interfaces/preferences.mojom.h"
#include "services/service_manager/public/cpp/connector.h"
@@ -838,12 +838,12 @@ void Shell::Init(const ShellInitParams& init_params) {
wallpaper_controller_ = base::MakeUnique<WallpaperController>(blocking_pool_);
// Start devtools server
- devtools_server_ = ui::devtools::UiDevToolsServer::Create(nullptr);
+ devtools_server_ = ui_devtools::UiDevToolsServer::Create(nullptr);
if (devtools_server_) {
- auto dom_backend = base::MakeUnique<devtools::AshDevToolsDOMAgent>();
+ auto dom_backend = base::MakeUnique<ui_devtools::UIDevToolsDOMAgent>();
auto css_backend =
- base::MakeUnique<devtools::AshDevToolsCSSAgent>(dom_backend.get());
- auto devtools_client = base::MakeUnique<ui::devtools::UiDevToolsClient>(
+ base::MakeUnique<ui_devtools::UIDevToolsCSSAgent>(dom_backend.get());
+ auto devtools_client = base::MakeUnique<ui_devtools::UiDevToolsClient>(
"Ash", devtools_server_.get());
devtools_client->AddAgent(std::move(dom_backend));
devtools_client->AddAgent(std::move(css_backend));
« no previous file with comments | « ash/shell.h ('k') | chrome/browser/about_flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698