| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/chromeos/dom_ui/system_info_ui.h" | 5 #include "chrome/browser/chromeos/dom_ui/system_info_ui.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 175 |
| 176 SystemInfoUI::SystemInfoUI(TabContents* contents) : DOMUI(contents) { | 176 SystemInfoUI::SystemInfoUI(TabContents* contents) : DOMUI(contents) { |
| 177 SystemInfoHandler* handler = new SystemInfoHandler(); | 177 SystemInfoHandler* handler = new SystemInfoHandler(); |
| 178 AddMessageHandler((handler)->Attach(this)); | 178 AddMessageHandler((handler)->Attach(this)); |
| 179 SystemInfoUIHTMLSource* html_source = new SystemInfoUIHTMLSource(); | 179 SystemInfoUIHTMLSource* html_source = new SystemInfoUIHTMLSource(); |
| 180 | 180 |
| 181 // Set up the chrome://system/ source. | 181 // Set up the chrome://system/ source. |
| 182 BrowserThread::PostTask( | 182 BrowserThread::PostTask( |
| 183 BrowserThread::IO, FROM_HERE, | 183 BrowserThread::IO, FROM_HERE, |
| 184 NewRunnableMethod( | 184 NewRunnableMethod( |
| 185 Singleton<ChromeURLDataManager>::get(), | 185 ChromeURLDataManager::GetInstance(), |
| 186 &ChromeURLDataManager::AddDataSource, | 186 &ChromeURLDataManager::AddDataSource, |
| 187 make_scoped_refptr(html_source))); | 187 make_scoped_refptr(html_source))); |
| 188 } | 188 } |
| OLD | NEW |