| Index: chrome/browser/tab_contents/web_contents.cc
 | 
| ===================================================================
 | 
| --- chrome/browser/tab_contents/web_contents.cc	(revision 13164)
 | 
| +++ chrome/browser/tab_contents/web_contents.cc	(working copy)
 | 
| @@ -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 @@
 | 
|    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();
 | 
|  
 | 
| 
 |