Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / webui / chromeos / imageburner / imageburner_ui.cc
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 // TODO(crbug.com/427785): Remove this file, and related strings and
6 // constants after 2015-10-31.
7
8 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h"
9
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"
15
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);
22 }