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

Side by Side Diff: chrome/browser/ui/webui/devtools_ui.cc

Issue 11943008: The dev tools process does not actually need Web UI bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/devtools/devtools_window.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ref_counted_memory.h" 9 #include "base/memory/ref_counted_memory.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 void DevToolsUI::RegisterDevToolsDataSource(Profile* profile) { 97 void DevToolsUI::RegisterDevToolsDataSource(Profile* profile) {
98 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 98 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
99 static bool registered = false; 99 static bool registered = false;
100 if (!registered) { 100 if (!registered) {
101 ChromeURLDataManager::AddDataSource(profile, new DevToolsDataSource); 101 ChromeURLDataManager::AddDataSource(profile, new DevToolsDataSource);
102 registered = true; 102 registered = true;
103 } 103 }
104 } 104 }
105 105
106 DevToolsUI::DevToolsUI(content::WebUI* web_ui) : WebUIController(web_ui) { 106 DevToolsUI::DevToolsUI(content::WebUI* web_ui) : WebUIController(web_ui) {
107 web_ui->SetBindings(0);
107 ChromeURLDataManager::AddDataSource( 108 ChromeURLDataManager::AddDataSource(
108 Profile::FromWebUI(web_ui), new DevToolsDataSource); 109 Profile::FromWebUI(web_ui), new DevToolsDataSource);
109 } 110 }
110 111
111 void DevToolsUI::RenderViewCreated( 112 void DevToolsUI::RenderViewCreated(
112 content::RenderViewHost* render_view_host) { 113 content::RenderViewHost* render_view_host) {
113 content::DevToolsClientHost::SetupDevToolsFrontendClient(render_view_host); 114 content::DevToolsClientHost::SetupDevToolsFrontendClient(render_view_host);
114 } 115 }
OLDNEW
« no previous file with comments | « chrome/browser/devtools/devtools_window.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698