OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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/chromeos/drive_internals_ui.h" |
| 6 |
| 7 #include "chrome/browser/profiles/profile.h" |
| 8 #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h" |
| 9 #include "chrome/common/url_constants.h" |
| 10 #include "content/public/browser/web_ui.h" |
| 11 #include "grit/browser_resources.h" |
| 12 |
| 13 namespace chromeos { |
| 14 |
| 15 DriveInternalsUI::DriveInternalsUI(content::WebUI* web_ui) |
| 16 : WebUIController(web_ui) { |
| 17 ChromeWebUIDataSource* source = |
| 18 new ChromeWebUIDataSource(chrome::kChromeUIDriveInternalsHost); |
| 19 source->add_resource_path("drive_internals.js", IDR_DRIVE_INTERNALS_JS); |
| 20 source->set_default_resource(IDR_DRIVE_INTERNALS_HTML); |
| 21 |
| 22 Profile* profile = Profile::FromWebUI(web_ui); |
| 23 ChromeURLDataManager::AddDataSource(profile, source); |
| 24 } |
| 25 |
| 26 } // namespace chromeos |
OLD | NEW |