summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents
diff options
context:
space:
mode:
authorpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-07 07:52:31 +0000
committerpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-07 07:52:31 +0000
commit86fd92283a371973f175b34f39ba8dd6ef86d7bc (patch)
tree2bd5a71a4bd41f4efdc812600478b5bbb547c932 /chrome/browser/tab_contents
parent75896d770eb0108301fd279f40f823bbaecadd73 (diff)
downloadchromium_src-86fd92283a371973f175b34f39ba8dd6ef86d7bc.zip
chromium_src-86fd92283a371973f175b34f39ba8dd6ef86d7bc.tar.gz
chromium_src-86fd92283a371973f175b34f39ba8dd6ef86d7bc.tar.bz2
DevTools: tell agent it has client attached early (prior to the navigation).
Review URL: http://codereview.chromium.org/60115 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13237 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r--chrome/browser/tab_contents/web_contents.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/web_contents.cc b/chrome/browser/tab_contents/web_contents.cc
index db87eb9..7f3164a 100644
--- a/chrome/browser/tab_contents/web_contents.cc
+++ b/chrome/browser/tab_contents/web_contents.cc
@@ -13,6 +13,7 @@
#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/character_encoding.h"
+#include "chrome/browser/debugger/devtools_manager.h"
#include "chrome/browser/dom_operation_notification_details.h"
#include "chrome/browser/dom_ui/dom_ui.h"
#include "chrome/browser/dom_ui/dom_ui_factory.h"
@@ -416,6 +417,11 @@ bool WebContents::NavigateToPendingEntry(bool reload) {
if (!dest_render_view_host)
return false; // Unable to create the desired render view host.
+ // Tell DevTools agent that it is attached prior to the navigation.
+ DevToolsManager* dev_tools_manager = g_browser_process->devtools_manager();
+ if (dev_tools_manager) // NULL in unit tests.
+ dev_tools_manager->SendAttachToAgent(*this, dest_render_view_host);
+
// Used for page load time metrics.
current_load_start_ = TimeTicks::Now();