| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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/extensions/extensions_ui.h" | 5 #include "chrome/browser/extensions/extensions_ui.h" |
| 6 | 6 |
| 7 #include "app/resource_bundle.h" | 7 #include "app/resource_bundle.h" |
| 8 #include "base/thread.h" | 8 #include "base/thread.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/extensions/extensions_service.h" | 10 #include "chrome/browser/extensions/extensions_service.h" |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 ExtensionsUI::ExtensionsUI(TabContents* contents) : DOMUI(contents) { | 173 ExtensionsUI::ExtensionsUI(TabContents* contents) : DOMUI(contents) { |
| 174 ExtensionsService *exstension_service = GetProfile()->GetExtensionsService(); | 174 ExtensionsService *exstension_service = GetProfile()->GetExtensionsService(); |
| 175 | 175 |
| 176 ExtensionsDOMHandler* handler = new ExtensionsDOMHandler(this, | 176 ExtensionsDOMHandler* handler = new ExtensionsDOMHandler(this, |
| 177 exstension_service); | 177 exstension_service); |
| 178 AddMessageHandler(handler); | 178 AddMessageHandler(handler); |
| 179 handler->Init(); | 179 handler->Init(); |
| 180 | 180 |
| 181 ExtensionsUIHTMLSource* html_source = new ExtensionsUIHTMLSource(); | 181 ExtensionsUIHTMLSource* html_source = new ExtensionsUIHTMLSource(); |
| 182 | 182 |
| 183 // Set up the chrome-ui://extensions/ source. | 183 // Set up the chrome://extensions/ source. |
| 184 g_browser_process->io_thread()->message_loop()->PostTask(FROM_HERE, | 184 g_browser_process->io_thread()->message_loop()->PostTask(FROM_HERE, |
| 185 NewRunnableMethod(&chrome_url_data_manager, | 185 NewRunnableMethod(&chrome_url_data_manager, |
| 186 &ChromeURLDataManager::AddDataSource, html_source)); | 186 &ChromeURLDataManager::AddDataSource, html_source)); |
| 187 } | 187 } |
| OLD | NEW |