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/about_ui.h" | 5 #include "chrome/browser/ui/webui/about_ui.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 30 matching lines...) Expand all Loading... |
41 #include "chrome/browser/net/predictor.h" | 41 #include "chrome/browser/net/predictor.h" |
42 #include "chrome/browser/profiles/profile.h" | 42 #include "chrome/browser/profiles/profile.h" |
43 #include "chrome/browser/profiles/profile_manager.h" | 43 #include "chrome/browser/profiles/profile_manager.h" |
44 #include "chrome/browser/ui/browser_dialogs.h" | 44 #include "chrome/browser/ui/browser_dialogs.h" |
45 #include "chrome/common/chrome_paths.h" | 45 #include "chrome/common/chrome_paths.h" |
46 #include "chrome/common/url_constants.h" | 46 #include "chrome/common/url_constants.h" |
47 #include "chrome/grit/browser_resources.h" | 47 #include "chrome/grit/browser_resources.h" |
48 #include "chrome/grit/chromium_strings.h" | 48 #include "chrome/grit/chromium_strings.h" |
49 #include "chrome/grit/generated_resources.h" | 49 #include "chrome/grit/generated_resources.h" |
50 #include "chrome/grit/locale_settings.h" | 50 #include "chrome/grit/locale_settings.h" |
| 51 #include "components/grit/components_resources.h" |
51 #include "components/strings/grit/components_locale_settings.h" | 52 #include "components/strings/grit/components_locale_settings.h" |
52 #include "content/public/browser/browser_thread.h" | 53 #include "content/public/browser/browser_thread.h" |
53 #include "content/public/browser/render_process_host.h" | 54 #include "content/public/browser/render_process_host.h" |
54 #include "content/public/browser/render_view_host.h" | 55 #include "content/public/browser/render_view_host.h" |
55 #include "content/public/browser/url_data_source.h" | 56 #include "content/public/browser/url_data_source.h" |
56 #include "content/public/browser/web_contents.h" | 57 #include "content/public/browser/web_contents.h" |
57 #include "content/public/common/content_client.h" | 58 #include "content/public/common/content_client.h" |
58 #include "content/public/common/process_type.h" | 59 #include "content/public/common/process_type.h" |
59 #include "google_apis/gaia/google_service_auth_error.h" | 60 #include "google_apis/gaia/google_service_auth_error.h" |
60 #include "grit/components_resources.h" | |
61 #include "net/base/escape.h" | 61 #include "net/base/escape.h" |
62 #include "net/base/filename_util.h" | 62 #include "net/base/filename_util.h" |
63 #include "net/base/load_flags.h" | 63 #include "net/base/load_flags.h" |
64 #include "net/http/http_response_headers.h" | 64 #include "net/http/http_response_headers.h" |
65 #include "net/url_request/url_fetcher.h" | 65 #include "net/url_request/url_fetcher.h" |
66 #include "net/url_request/url_request_status.h" | 66 #include "net/url_request/url_request_status.h" |
67 #include "third_party/brotli/dec/decode.h" | 67 #include "third_party/brotli/dec/decode.h" |
68 #include "ui/base/l10n/l10n_util.h" | 68 #include "ui/base/l10n/l10n_util.h" |
69 #include "ui/base/resource/resource_bundle.h" | 69 #include "ui/base/resource/resource_bundle.h" |
70 #include "ui/base/webui/jstemplate_builder.h" | 70 #include "ui/base/webui/jstemplate_builder.h" |
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
857 Profile* profile = Profile::FromWebUI(web_ui); | 857 Profile* profile = Profile::FromWebUI(web_ui); |
858 | 858 |
859 #if defined(ENABLE_THEMES) | 859 #if defined(ENABLE_THEMES) |
860 // Set up the chrome://theme/ source. | 860 // Set up the chrome://theme/ source. |
861 ThemeSource* theme = new ThemeSource(profile); | 861 ThemeSource* theme = new ThemeSource(profile); |
862 content::URLDataSource::Add(profile, theme); | 862 content::URLDataSource::Add(profile, theme); |
863 #endif | 863 #endif |
864 | 864 |
865 content::URLDataSource::Add(profile, new AboutUIHTMLSource(name, profile)); | 865 content::URLDataSource::Add(profile, new AboutUIHTMLSource(name, profile)); |
866 } | 866 } |
OLD | NEW |