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

Side by Side Diff: chrome/browser/ui/webui/sync_file_system_internals_ui.cc

Issue 14765003: Gets the initial sync service status. In the next patch I'll make the syncfs-internals dashboard a … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initial patch for review Created 7 years, 7 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 2013 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/ui/webui/sync_file_system_internals_ui.h"
6
7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/common/url_constants.h"
9 #include "content/public/browser/web_ui.h"
10 #include "content/public/browser/web_ui_data_source.h"
11 #include "grit/sync_file_system_internals_resources.h"
12
13 namespace {
14
15 content::WebUIDataSource* CreateSyncFileSystemInternalsHTMLSource() {
16 content::WebUIDataSource* source =
17 content::WebUIDataSource::Create(
18 chrome::kChromeUISyncFileSystemInternalsHost);
19 source->SetDefaultResource(IDR_SYNC_FILE_SYSTEM_INTERNALS_MAIN_HTML);
20 return source;
21 }
22
23 } // namespace
24
25 SyncFileSystemInternalsUI::SyncFileSystemInternalsUI(content::WebUI* web_ui)
26 : WebUIController(web_ui) {
27 Profile* profile = Profile::FromWebUI(web_ui);
28 content::WebUIDataSource::Add(profile,
29 CreateSyncFileSystemInternalsHTMLSource());
30 }
31
32 SyncFileSystemInternalsUI::~SyncFileSystemInternalsUI() {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698