| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/webui/devtools_ui.h" | 5 #include "chrome/browser/ui/webui/devtools_ui.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 101 |
| 102 DevToolsUI::DevToolsUI(TabContents* contents) : ChromeWebUI(contents) { | 102 DevToolsUI::DevToolsUI(TabContents* contents) : ChromeWebUI(contents) { |
| 103 DevToolsDataSource* data_source = new DevToolsDataSource(); | 103 DevToolsDataSource* data_source = new DevToolsDataSource(); |
| 104 Profile* profile = Profile::FromBrowserContext(contents->browser_context()); | 104 Profile* profile = Profile::FromBrowserContext(contents->browser_context()); |
| 105 profile->GetChromeURLDataManager()->AddDataSource(data_source); | 105 profile->GetChromeURLDataManager()->AddDataSource(data_source); |
| 106 } | 106 } |
| 107 | 107 |
| 108 void DevToolsUI::RenderViewCreated(RenderViewHost* render_view_host) { | 108 void DevToolsUI::RenderViewCreated(RenderViewHost* render_view_host) { |
| 109 render_view_host->Send(new DevToolsMsg_SetupDevToolsClient( | 109 render_view_host->Send(new DevToolsMsg_SetupDevToolsClient( |
| 110 render_view_host->routing_id())); | 110 render_view_host->routing_id())); |
| 111 |
| 112 ChromeWebUI::RenderViewCreated(render_view_host); |
| 111 } | 113 } |
| OLD | NEW |