| OLD | NEW |
| (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() {} | |
| OLD | NEW |