OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/webui/welcome_ui_android.h" | 5 #include "chrome/browser/ui/webui/welcome_ui_android.h" |
6 | 6 |
7 #include "chrome/browser/profiles/profile.h" | 7 #include "chrome/browser/profiles/profile.h" |
8 #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h" | 8 #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h" |
9 #include "chrome/common/url_constants.h" | 9 #include "chrome/common/url_constants.h" |
10 #include "grit/browser_resources.h" | 10 #include "grit/browser_resources.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 // Add required resources. | 29 // Add required resources. |
30 html_source->set_json_path("strings.js"); | 30 html_source->set_json_path("strings.js"); |
31 html_source->add_resource_path("about_welcome_android.css", | 31 html_source->add_resource_path("about_welcome_android.css", |
32 IDR_ABOUT_WELCOME_CSS); | 32 IDR_ABOUT_WELCOME_CSS); |
33 html_source->add_resource_path("about_welcome_android.js", | 33 html_source->add_resource_path("about_welcome_android.js", |
34 IDR_ABOUT_WELCOME_JS); | 34 IDR_ABOUT_WELCOME_JS); |
35 html_source->set_default_resource(IDR_ABOUT_WELCOME_HTML); | 35 html_source->set_default_resource(IDR_ABOUT_WELCOME_HTML); |
36 | 36 |
37 Profile* profile = Profile::FromWebUI(web_ui); | 37 Profile* profile = Profile::FromWebUI(web_ui); |
38 ChromeURLDataManager::AddDataSource(profile, html_source); | 38 ChromeURLDataManager::AddDataSourceImpl(profile, html_source); |
39 } | 39 } |
40 | 40 |
41 WelcomeUI::~WelcomeUI() { | 41 WelcomeUI::~WelcomeUI() { |
42 } | 42 } |
OLD | NEW |