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

Side by Side Diff: chrome/browser/ui/webui/chromeos/charger_replacement_ui.cc

Issue 731663002: Remove Yoshi charger recall pop up warning UI code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Deprecat the related UMA metrics in histograms.xml. Created 6 years, 1 month 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
OLDNEW
(Empty)
1 // Copyright (c) 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/chromeos/charger_replacement_ui.h"
6
7 #include "base/values.h"
8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/ui/webui/chromeos/charger_replacement_handler.h"
10 #include "chrome/common/url_constants.h"
11 #include "content/public/browser/web_ui.h"
12 #include "content/public/browser/web_ui_data_source.h"
13 #include "grit/browser_resources.h"
14
15 namespace chromeos {
16
17 ChargerReplacementUI::ChargerReplacementUI(content::WebUI* web_ui)
18 : WebDialogUI(web_ui) {
19 base::DictionaryValue localized_strings;
20 ChargerReplacementHandler::GetLocalizedValues(&localized_strings);
21 content::WebUIDataSource* source = content::WebUIDataSource::Create(
22 chrome::kChromeUIChargerReplacementHost);
23 source->AddLocalizedStrings(localized_strings);
24 source->SetJsonPath("strings.js");
25 source->SetDefaultResource(IDR_CHARGER_REPLACEMENT_HTML);
26 source->DisableContentSecurityPolicy();
27
28 Profile* profile = Profile::FromWebUI(web_ui);
29 content::WebUIDataSource::Add(profile, source);
30 }
31
32 ChargerReplacementUI::~ChargerReplacementUI() {
33 }
34
35 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/charger_replacement_ui.h ('k') | chrome/chrome_browser_chromeos.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698