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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/sync_internals_ui.cc
diff --git a/chrome/browser/dom_ui/sync_internals_ui.cc b/chrome/browser/dom_ui/sync_internals_ui.cc
new file mode 100644
index 0000000000000000000000000000000000000000..838f5d6b60b27ebae5b18deba9dfb903630be7b6
--- /dev/null
+++ b/chrome/browser/dom_ui/sync_internals_ui.cc
@@ -0,0 +1,30 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/dom_ui/sync_internals_ui.h"
+
+#include "base/ref_counted.h"
+#include "base/task.h"
+#include "base/tracked_objects.h"
+#include "chrome/browser/browser_thread.h"
+#include "chrome/browser/dom_ui/chrome_url_data_manager.h"
+#include "chrome/browser/dom_ui/sync_internals_html_source.h"
+#include "chrome/browser/dom_ui/sync_internals_message_handler.h"
+#include "chrome/browser/tab_contents/tab_contents.h"
+
+SyncInternalsUI::SyncInternalsUI(TabContents* contents) : DOMUI(contents) {
+ SyncInternalsMessageHandler* message_handler =
+ new SyncInternalsMessageHandler(contents->profile());
+ message_handler->Attach(this);
+ AddMessageHandler(message_handler);
+
+ BrowserThread::PostTask(
+ BrowserThread::IO, FROM_HERE,
+ NewRunnableMethod(
+ ChromeURLDataManager::GetInstance(),
+ &ChromeURLDataManager::AddDataSource,
+ make_scoped_refptr(new SyncInternalsHTMLSource())));
+}
+
+SyncInternalsUI::~SyncInternalsUI() {}
« 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