summaryrefslogtreecommitdiffstats
path: root/chrome/browser/debugger/debugger_remote_service.cc
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-14 22:15:00 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-14 22:15:00 +0000
commit81898992dcbade4de1c6e6ca8953e7fdf0669599 (patch)
tree6c58bf4ce15c75cf4f45331a2bf2fa73ecfbb0eb /chrome/browser/debugger/debugger_remote_service.cc
parente87b8b518d43c0342367c0f710299a5dc9ef2e4b (diff)
downloadchromium_src-81898992dcbade4de1c6e6ca8953e7fdf0669599.zip
chromium_src-81898992dcbade4de1c6e6ca8953e7fdf0669599.tar.gz
chromium_src-81898992dcbade4de1c6e6ca8953e7fdf0669599.tar.bz2
Moves NavigationController::session_id into RestoreTabHelper.
BUG=none TEST=none R=nick@chromium.org,mpcomplete@chromium.org,jam@chromium.org Review URL: http://codereview.chromium.org/7104064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89083 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/debugger/debugger_remote_service.cc')
-rw-r--r--chrome/browser/debugger/debugger_remote_service.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/debugger/debugger_remote_service.cc b/chrome/browser/debugger/debugger_remote_service.cc
index 8f814a8..47ccdae 100644
--- a/chrome/browser/debugger/debugger_remote_service.cc
+++ b/chrome/browser/debugger/debugger_remote_service.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -17,6 +17,7 @@
#include "chrome/browser/debugger/devtools_protocol_handler.h"
#include "chrome/browser/debugger/devtools_remote_message.h"
#include "chrome/browser/debugger/inspectable_tab_proxy.h"
+#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
#include "chrome/common/render_messages.h"
#include "content/browser/renderer_host/render_view_host.h"
#include "content/browser/tab_contents/tab_contents.h"
@@ -132,11 +133,10 @@ void DebuggerRemoteService::SendResponse(const Value& response,
// Gets a TabContents instance corresponding to the |tab_uid| using the
// InspectableTabProxy controllers map, or NULL if none found.
TabContents* DebuggerRemoteService::ToTabContents(int32 tab_uid) {
- const InspectableTabProxy::ControllersMap& navcon_map =
- delegate_->inspectable_tab_proxy()->controllers_map();
- InspectableTabProxy::ControllersMap::const_iterator it =
- navcon_map.find(tab_uid);
- if (it != navcon_map.end()) {
+ const InspectableTabProxy::TabMap& tab_map =
+ delegate_->inspectable_tab_proxy()->tab_map();
+ InspectableTabProxy::TabMap::const_iterator it = tab_map.find(tab_uid);
+ if (it != tab_map.end()) {
TabContents* tab_contents = it->second->tab_contents();
if (tab_contents == NULL) {
return NULL;