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

Side by Side Diff: chrome/browser/ui/webui/web_component_test_ui.cc

Issue 1128543002: Blank UI for web component tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 months 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 2015 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/web_component_test_ui.h"
6
7 #include "base/values.h"
8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/common/url_constants.h"
10 #include "content/public/browser/web_ui.h"
11 #include "content/public/browser/web_ui_data_source.h"
12 #include "grit/browser_resources.h"
13
14 WebComponentTestUI::WebComponentTestUI(content::WebUI* web_ui)
15 : WebUIController(web_ui) {
16 content::WebUIDataSource* source =
17 content::WebUIDataSource::Create(chrome::kChromeUIWebComponentTestHost);
18 source->SetDefaultResource(IDR_WEB_COMPONENT_TEST_HTML);
19
20 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), source);
21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698