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

Unified Diff: content/browser/debugger/devtools_client_host.cc

Issue 8634006: DevTools: remove obsolete methods from DevToolsClientHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | « content/browser/debugger/devtools_client_host.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/debugger/devtools_client_host.cc
diff --git a/content/browser/debugger/devtools_client_host.cc b/content/browser/debugger/devtools_client_host.cc
index 3ff2c5496e3d2bac3b3369f78fb6a97dc27e41a2..68fa25fffca955cf9b7d723c4d15fa815a3659f7 100644
--- a/content/browser/debugger/devtools_client_host.cc
+++ b/content/browser/debugger/devtools_client_host.cc
@@ -2,45 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <algorithm>
-
-#include "base/lazy_instance.h"
-#include "base/logging.h"
#include "content/browser/debugger/devtools_client_host.h"
-#include "content/browser/debugger/devtools_manager.h"
-typedef std::vector<DevToolsClientHost*> DevToolsClientHostList;
-namespace {
-base::LazyInstance<DevToolsClientHostList,
- base::LeakyLazyInstanceTraits<DevToolsClientHostList> >
- g_instances = LAZY_INSTANCE_INITIALIZER;
-} // namespace
-
-// static
-DevToolsClientHost* DevToolsClientHost::FindOwnerClientHost(
- RenderViewHost* client_rvh) {
- for (DevToolsClientHostList::iterator it = g_instances.Get().begin();
- it != g_instances.Get().end(); ++it) {
- if ((*it)->GetClientRenderViewHost() == client_rvh)
- return *it;
- }
- return NULL;
-}
+#include "content/browser/debugger/devtools_manager.h"
DevToolsClientHost::~DevToolsClientHost() {
- DevToolsClientHostList::iterator it = std::find(g_instances.Get().begin(),
- g_instances.Get().end(),
- this);
- DCHECK(it != g_instances.Get().end());
- g_instances.Get().erase(it);
-}
-
-RenderViewHost* DevToolsClientHost::GetClientRenderViewHost() {
- return NULL;
}
DevToolsClientHost::DevToolsClientHost() : close_listener_(NULL) {
- g_instances.Get().push_back(this);
}
void DevToolsClientHost::ForwardToDevToolsAgent(const IPC::Message& message) {
« no previous file with comments | « content/browser/debugger/devtools_client_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698