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 <string> | 7 #include <string> |
8 | 8 |
9 #include "base/string16.h" | 9 #include "base/string16.h" |
10 #include "base/stringprintf.h" | 10 #include "base/stringprintf.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "chrome/browser/android/tab_android.h" | 12 #include "chrome/browser/android/tab_android.h" |
13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/browser/ui/webui/welcome_handler_android.h" | 15 #include "chrome/browser/ui/webui/welcome_handler_android.h" |
16 #include "chrome/common/url_constants.h" | 16 #include "chrome/common/url_constants.h" |
17 #include "content/public/browser/web_ui.h" | 17 #include "content/public/browser/web_ui.h" |
18 #include "content/public/browser/web_ui_data_source.h" | 18 #include "content/public/browser/web_ui_data_source.h" |
19 #include "grit/browser_resources.h" | 19 #include "grit/browser_resources.h" |
20 #include "grit/chromium_strings.h" | 20 #include "grit/chromium_strings.h" |
21 #include "grit/generated_resources.h" | 21 #include "grit/generated_resources.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 Profile* profile = Profile::FromWebUI(web_ui); | 74 Profile* profile = Profile::FromWebUI(web_ui); |
75 content::WebUIDataSource::Add(profile, html_source); | 75 content::WebUIDataSource::Add(profile, html_source); |
76 | 76 |
77 // Add message handlers. | 77 // Add message handlers. |
78 web_ui->AddMessageHandler(new WelcomeHandler()); | 78 web_ui->AddMessageHandler(new WelcomeHandler()); |
79 } | 79 } |
80 | 80 |
81 WelcomeUI::~WelcomeUI() { | 81 WelcomeUI::~WelcomeUI() { |
82 } | 82 } |
OLD | NEW |