OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/dom_ui/sync_internals_ui.h" |
| 6 |
| 7 #include "base/ref_counted.h" |
| 8 #include "base/task.h" |
| 9 #include "base/tracked_objects.h" |
| 10 #include "chrome/browser/browser_thread.h" |
| 11 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" |
| 12 #include "chrome/browser/dom_ui/sync_internals_html_source.h" |
| 13 #include "chrome/browser/dom_ui/sync_internals_message_handler.h" |
| 14 #include "chrome/browser/tab_contents/tab_contents.h" |
| 15 |
| 16 SyncInternalsUI::SyncInternalsUI(TabContents* contents) : DOMUI(contents) { |
| 17 SyncInternalsMessageHandler* message_handler = |
| 18 new SyncInternalsMessageHandler(contents->profile()); |
| 19 message_handler->Attach(this); |
| 20 AddMessageHandler(message_handler); |
| 21 |
| 22 BrowserThread::PostTask( |
| 23 BrowserThread::IO, FROM_HERE, |
| 24 NewRunnableMethod( |
| 25 ChromeURLDataManager::GetInstance(), |
| 26 &ChromeURLDataManager::AddDataSource, |
| 27 make_scoped_refptr(new SyncInternalsHTMLSource()))); |
| 28 } |
| 29 |
| 30 SyncInternalsUI::~SyncInternalsUI() {} |
OLD | NEW |