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/dom_ui/register_page_ui.h" | 5 #include "chrome/browser/dom_ui/register_page_ui.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "app/l10n_util.h" | |
10 #include "app/resource_bundle.h" | 9 #include "app/resource_bundle.h" |
11 #include "base/callback.h" | 10 #include "base/callback.h" |
12 #include "base/logging.h" | 11 #include "base/logging.h" |
13 #include "base/string_piece.h" | 12 #include "base/string_piece.h" |
14 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
15 #include "base/values.h" | 14 #include "base/values.h" |
16 #include "base/weak_ptr.h" | 15 #include "base/weak_ptr.h" |
17 #include "chrome/browser/browser_process.h" | 16 #include "chrome/browser/browser_process.h" |
18 #include "chrome/browser/chrome_thread.h" | 17 #include "chrome/browser/chrome_thread.h" |
19 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" | 18 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 RegisterPageUIHTMLSource* html_source = new RegisterPageUIHTMLSource(); | 241 RegisterPageUIHTMLSource* html_source = new RegisterPageUIHTMLSource(); |
243 | 242 |
244 // Set up the chrome://register/ source. | 243 // Set up the chrome://register/ source. |
245 ChromeThread::PostTask( | 244 ChromeThread::PostTask( |
246 ChromeThread::IO, FROM_HERE, | 245 ChromeThread::IO, FROM_HERE, |
247 NewRunnableMethod( | 246 NewRunnableMethod( |
248 Singleton<ChromeURLDataManager>::get(), | 247 Singleton<ChromeURLDataManager>::get(), |
249 &ChromeURLDataManager::AddDataSource, | 248 &ChromeURLDataManager::AddDataSource, |
250 make_scoped_refptr(html_source))); | 249 make_scoped_refptr(html_source))); |
251 } | 250 } |
OLD | NEW |