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.
5 // TODO(crbug.com/427785): Remove this file, and related strings and
6 // constants after 2015-10-31.
8 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h"
10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/common/url_constants.h"
12 #include "content/public/browser/web_ui.h"
13 #include "content/public/browser/web_ui_data_source.h"
14 #include "grit/browser_resources.h"
16 ImageBurnUI::ImageBurnUI(content::WebUI
* web_ui
) : WebUIController(web_ui
) {
17 Profile
* profile
= Profile::FromWebUI(web_ui
);
18 content::WebUIDataSource
* source
=
19 content::WebUIDataSource::Create(chrome::kChromeUIImageBurnerHost
);
20 source
->SetDefaultResource(IDR_IMAGEBURNER_HTML
);
21 content::WebUIDataSource::Add(profile
, source
);