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/register_page_ui.h" | 5 #include "chrome/browser/chromeos/dom_ui/register_page_ui.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "app/resource_bundle.h" | 9 #include "app/resource_bundle.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 RegisterPageUI::RegisterPageUI(TabContents* contents) : DOMUI(contents){ | 319 RegisterPageUI::RegisterPageUI(TabContents* contents) : DOMUI(contents){ |
320 RegisterPageHandler* handler = new RegisterPageHandler(); | 320 RegisterPageHandler* handler = new RegisterPageHandler(); |
321 AddMessageHandler((handler)->Attach(this)); | 321 AddMessageHandler((handler)->Attach(this)); |
322 handler->Init(); | 322 handler->Init(); |
323 RegisterPageUIHTMLSource* html_source = new RegisterPageUIHTMLSource(); | 323 RegisterPageUIHTMLSource* html_source = new RegisterPageUIHTMLSource(); |
324 | 324 |
325 // Set up the chrome://register/ source. | 325 // Set up the chrome://register/ source. |
326 BrowserThread::PostTask( | 326 BrowserThread::PostTask( |
327 BrowserThread::IO, FROM_HERE, | 327 BrowserThread::IO, FROM_HERE, |
328 NewRunnableMethod( | 328 NewRunnableMethod( |
329 Singleton<ChromeURLDataManager>::get(), | 329 ChromeURLDataManager::GetInstance(), |
330 &ChromeURLDataManager::AddDataSource, | 330 &ChromeURLDataManager::AddDataSource, |
331 make_scoped_refptr(html_source))); | 331 make_scoped_refptr(html_source))); |
332 } | 332 } |
OLD | NEW |