| 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 "base/ref_counted_memory.h" | 5 #include "base/ref_counted_memory.h" |
| 6 #include "base/singleton.h" | 6 #include "base/singleton.h" |
| 7 #include "base/string_piece.h" | 7 #include "base/string_piece.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "chrome/browser/browser_thread.h" | 9 #include "chrome/browser/browser_thread.h" |
| 10 #include "chrome/browser/chromeos/dom_ui/login/authenticator_facade.h" | 10 #include "chrome/browser/chromeos/dom_ui/login/authenticator_facade.h" |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 LoginUI::LoginUI(TabContents* contents) | 132 LoginUI::LoginUI(TabContents* contents) |
| 133 : DOMUI(contents) { | 133 : DOMUI(contents) { |
| 134 LoginUIHandler* handler = new LoginUIHandler(); | 134 LoginUIHandler* handler = new LoginUIHandler(); |
| 135 AddMessageHandler(handler->Attach(this)); | 135 AddMessageHandler(handler->Attach(this)); |
| 136 LoginUIHTMLSource* html_source = | 136 LoginUIHTMLSource* html_source = |
| 137 new LoginUIHTMLSource(MessageLoop::current()); | 137 new LoginUIHTMLSource(MessageLoop::current()); |
| 138 | 138 |
| 139 BrowserThread::PostTask( | 139 BrowserThread::PostTask( |
| 140 BrowserThread::IO, FROM_HERE, | 140 BrowserThread::IO, FROM_HERE, |
| 141 NewRunnableMethod( | 141 NewRunnableMethod( |
| 142 Singleton<ChromeURLDataManager>::get(), | 142 ChromeURLDataManager::GetInstance(), |
| 143 &ChromeURLDataManager::AddDataSource, | 143 &ChromeURLDataManager::AddDataSource, |
| 144 make_scoped_refptr(html_source))); | 144 make_scoped_refptr(html_source))); |
| 145 } | 145 } |
| 146 | 146 |
| 147 } // namespace chromeos | 147 } // namespace chromeos |
| OLD | NEW |