| 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/l10n_util.h" |
| 7 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
| 8 #include "base/thread.h" | 9 #include "base/thread.h" |
| 9 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/extensions/extensions_service.h" | 11 #include "chrome/browser/extensions/extensions_service.h" |
| 11 #include "chrome/browser/extensions/extension_error_reporter.h" | 12 #include "chrome/browser/extensions/extension_error_reporter.h" |
| 12 #include "chrome/browser/profile.h" | 13 #include "chrome/browser/profile.h" |
| 13 #include "chrome/common/extensions/url_pattern.h" | 14 #include "chrome/common/extensions/url_pattern.h" |
| 14 #include "chrome/common/jstemplate_builder.h" | 15 #include "chrome/common/jstemplate_builder.h" |
| 15 #include "chrome/common/l10n_util.h" | |
| 16 #include "chrome/common/url_constants.h" | 16 #include "chrome/common/url_constants.h" |
| 17 #include "net/base/net_util.h" | 17 #include "net/base/net_util.h" |
| 18 | 18 |
| 19 #include "grit/browser_resources.h" | 19 #include "grit/browser_resources.h" |
| 20 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
| 21 | 21 |
| 22 //////////////////////////////////////////////////////////////////////////////// | 22 //////////////////////////////////////////////////////////////////////////////// |
| 23 // | 23 // |
| 24 // ExtensionsHTMLSource | 24 // ExtensionsHTMLSource |
| 25 // | 25 // |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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-ui://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 |