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

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

Issue 11881055: Simplify WebUI data sources. Currently WebUI data sources implement a URLDataSourceDelegate interfa… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix issue in about_ui exposed by cros tests Created 7 years, 11 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 | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698