Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: chrome/browser/dom_ui/sync_internals_ui.cc

Issue 6299002: [Sync] Port about:sync to DOMUI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added workaround for bug 69633 Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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() {}
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/sync_internals_ui.h ('k') | chrome/browser/resources/sync_internals/sync_index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698