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

Unified Diff: chrome/browser/devtools/devtools_ui_bindings.cc

Issue 1031393002: [DevTools] Remove unused messages (Chromium side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « chrome/browser/devtools/devtools_ui_bindings.h ('k') | chrome/browser/ui/webui/inspect_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/devtools/devtools_ui_bindings.cc
diff --git a/chrome/browser/devtools/devtools_ui_bindings.cc b/chrome/browser/devtools/devtools_ui_bindings.cc
index f01f824ed0ba6b14589eebb014540f54f1081cd6..03c3c97ae391af45b3c3c767c4f90f82e9308181 100644
--- a/chrome/browser/devtools/devtools_ui_bindings.cc
+++ b/chrome/browser/devtools/devtools_ui_bindings.cc
@@ -409,7 +409,6 @@ DevToolsUIBindings::DevToolsUIBindings(content::WebContents* web_contents)
android_bridge_(DevToolsAndroidBridge::Factory::GetForProfile(profile_)),
web_contents_(web_contents),
delegate_(new DefaultBindingsDelegate(web_contents_)),
- device_count_updates_enabled_(false),
devices_updates_enabled_(false),
frontend_loaded_(false),
weak_factory_(this) {
@@ -453,7 +452,6 @@ DevToolsUIBindings::~DevToolsUIBindings() {
jobs_it->second->Stop();
}
indexing_jobs_.clear();
- SetDeviceCountUpdatesEnabled(false);
SetDevicesUpdatesEnabled(false);
// Remove self from global list.
@@ -725,35 +723,6 @@ void DevToolsUIBindings::ResetZoom() {
ui_zoom::PageZoom::Zoom(web_contents(), content::PAGE_ZOOM_RESET);
}
-static void InspectTarget(Profile* profile, DevToolsTargetImpl* target) {
- if (target)
- target->Inspect(profile);
-}
-
-void DevToolsUIBindings::OpenUrlOnRemoteDeviceAndInspect(
- const std::string& browser_id,
- const std::string& url) {
- if (remote_targets_handler_) {
- remote_targets_handler_->Open(browser_id, url,
- base::Bind(&InspectTarget, profile_));
- }
-}
-
-void DevToolsUIBindings::SetDeviceCountUpdatesEnabled(bool enabled) {
- if (device_count_updates_enabled_ == enabled)
- return;
- DevToolsAndroidBridge* adb_bridge =
- DevToolsAndroidBridge::Factory::GetForProfile(profile_);
- if (!adb_bridge)
- return;
-
- device_count_updates_enabled_ = enabled;
- if (enabled)
- adb_bridge->AddDeviceCountListener(this);
- else
- adb_bridge->RemoveDeviceCountListener(this);
-}
-
void DevToolsUIBindings::SetDevicesUpdatesEnabled(bool enabled) {
if (devices_updates_enabled_ == enabled)
return;
« no previous file with comments | « chrome/browser/devtools/devtools_ui_bindings.h ('k') | chrome/browser/ui/webui/inspect_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698