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/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "chrome/browser/android/accessibility_util.h" | 12 #include "chrome/browser/android/accessibility_util.h" |
13 #include "chrome/browser/android/tab_android.h" | 13 #include "chrome/browser/android/tab_android.h" |
14 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
16 #include "chrome/browser/ui/webui/welcome_handler_android.h" | 16 #include "chrome/browser/ui/webui/welcome_handler_android.h" |
17 #include "chrome/common/url_constants.h" | 17 #include "chrome/common/url_constants.h" |
| 18 #include "chrome/grit/chromium_strings.h" |
| 19 #include "chrome/grit/generated_resources.h" |
| 20 #include "chrome/grit/google_chrome_strings.h" |
18 #include "content/public/browser/web_ui.h" | 21 #include "content/public/browser/web_ui.h" |
19 #include "content/public/browser/web_ui_data_source.h" | 22 #include "content/public/browser/web_ui_data_source.h" |
20 #include "grit/browser_resources.h" | 23 #include "grit/browser_resources.h" |
21 #include "grit/chromium_strings.h" | |
22 #include "grit/generated_resources.h" | |
23 #include "grit/google_chrome_strings.h" | |
24 #include "ui/base/l10n/l10n_util.h" | 24 #include "ui/base/l10n/l10n_util.h" |
25 | 25 |
26 const char kProductTourBaseURL[] = | 26 const char kProductTourBaseURL[] = |
27 "http://www.google.com/intl/%s/chrome/browser/mobile/tour/android.html"; | 27 "http://www.google.com/intl/%s/chrome/browser/mobile/tour/android.html"; |
28 | 28 |
29 const char kPrivacyNoticeBaseURL[] = | 29 const char kPrivacyNoticeBaseURL[] = |
30 "http://www.google.com/chrome/intl/%s/privacy.html"; | 30 "http://www.google.com/chrome/intl/%s/privacy.html"; |
31 | 31 |
32 WelcomeUI::WelcomeUI(content::WebUI* web_ui) | 32 WelcomeUI::WelcomeUI(content::WebUI* web_ui) |
33 : content::WebUIController(web_ui) { | 33 : content::WebUIController(web_ui) { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 Profile* profile = Profile::FromWebUI(web_ui); | 75 Profile* profile = Profile::FromWebUI(web_ui); |
76 content::WebUIDataSource::Add(profile, html_source); | 76 content::WebUIDataSource::Add(profile, html_source); |
77 | 77 |
78 // Add message handlers. | 78 // Add message handlers. |
79 web_ui->AddMessageHandler(new WelcomeHandler()); | 79 web_ui->AddMessageHandler(new WelcomeHandler()); |
80 } | 80 } |
81 | 81 |
82 WelcomeUI::~WelcomeUI() { | 82 WelcomeUI::~WelcomeUI() { |
83 } | 83 } |
OLD | NEW |