OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_win10_ui.h" | 5 #include "chrome/browser/ui/webui/welcome_win10_ui.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/feature_list.h" | 9 #include "base/feature_list.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
11 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/browser/ui/startup/startup_features.h" | 13 #include "chrome/browser/ui/startup/startup_features.h" |
14 #include "chrome/browser/ui/webui/welcome_win10_handler.h" | 14 #include "chrome/browser/ui/webui/welcome_win10_handler.h" |
15 #include "chrome/common/pref_names.h" | 15 #include "chrome/common/pref_names.h" |
16 #include "chrome/common/url_constants.h" | 16 #include "chrome/common/url_constants.h" |
17 #include "chrome/grit/browser_resources.h" | 17 #include "chrome/grit/browser_resources.h" |
18 #include "chrome/grit/chrome_unscaled_resources.h" | 18 #include "chrome/grit/chrome_unscaled_resources.h" |
19 #include "chrome/grit/chromium_strings.h" | 19 #include "chrome/grit/chromium_strings.h" |
20 #include "chrome/grit/generated_resources.h" | 20 #include "chrome/grit/generated_resources.h" |
21 #include "chrome/grit/theme_resources.h" | |
22 #include "components/prefs/pref_service.h" | 21 #include "components/prefs/pref_service.h" |
23 #include "content/public/browser/web_ui_data_source.h" | 22 #include "content/public/browser/web_ui_data_source.h" |
24 #include "net/base/url_util.h" | 23 #include "net/base/url_util.h" |
25 #include "ui/base/l10n/l10n_util.h" | 24 #include "ui/base/l10n/l10n_util.h" |
26 #include "url/gurl.h" | 25 #include "url/gurl.h" |
27 | 26 |
28 namespace { | 27 namespace { |
29 | 28 |
30 // Helper function to check the presence of a key/value inside the query in the | 29 // Helper function to check the presence of a key/value inside the query in the |
31 // |url|. | 30 // |url|. |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 html_source->SetDefaultResource(IDR_WELCOME_WIN10_SECTIONED_HTML); | 128 html_source->SetDefaultResource(IDR_WELCOME_WIN10_SECTIONED_HTML); |
130 } | 129 } |
131 | 130 |
132 html_source->AddResourcePath("logo-small.png", IDR_PRODUCT_LOGO_64); | 131 html_source->AddResourcePath("logo-small.png", IDR_PRODUCT_LOGO_64); |
133 html_source->AddResourcePath("logo-large.png", IDR_PRODUCT_LOGO_128); | 132 html_source->AddResourcePath("logo-large.png", IDR_PRODUCT_LOGO_128); |
134 | 133 |
135 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), html_source); | 134 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), html_source); |
136 } | 135 } |
137 | 136 |
138 WelcomeWin10UI::~WelcomeWin10UI() = default; | 137 WelcomeWin10UI::~WelcomeWin10UI() = default; |
OLD | NEW |