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 29 matching lines...) Expand all Loading... |
40 #include "chrome/browser/memory_details.h" | 40 #include "chrome/browser/memory_details.h" |
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/chromium_strings.h" | 47 #include "chrome/grit/chromium_strings.h" |
48 #include "chrome/grit/generated_resources.h" | 48 #include "chrome/grit/generated_resources.h" |
49 #include "chrome/grit/locale_settings.h" | 49 #include "chrome/grit/locale_settings.h" |
| 50 #include "components/strings/grit/components_locale_settings.h" |
50 #include "content/public/browser/browser_thread.h" | 51 #include "content/public/browser/browser_thread.h" |
51 #include "content/public/browser/render_process_host.h" | 52 #include "content/public/browser/render_process_host.h" |
52 #include "content/public/browser/render_view_host.h" | 53 #include "content/public/browser/render_view_host.h" |
53 #include "content/public/browser/url_data_source.h" | 54 #include "content/public/browser/url_data_source.h" |
54 #include "content/public/browser/web_contents.h" | 55 #include "content/public/browser/web_contents.h" |
55 #include "content/public/common/content_client.h" | 56 #include "content/public/common/content_client.h" |
56 #include "content/public/common/process_type.h" | 57 #include "content/public/common/process_type.h" |
57 #include "google_apis/gaia/google_service_auth_error.h" | 58 #include "google_apis/gaia/google_service_auth_error.h" |
58 #include "grit/browser_resources.h" | 59 #include "grit/browser_resources.h" |
59 #include "grit/components_resources.h" | 60 #include "grit/components_resources.h" |
(...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1037 Profile* profile = Profile::FromWebUI(web_ui); | 1038 Profile* profile = Profile::FromWebUI(web_ui); |
1038 | 1039 |
1039 #if defined(ENABLE_THEMES) | 1040 #if defined(ENABLE_THEMES) |
1040 // Set up the chrome://theme/ source. | 1041 // Set up the chrome://theme/ source. |
1041 ThemeSource* theme = new ThemeSource(profile); | 1042 ThemeSource* theme = new ThemeSource(profile); |
1042 content::URLDataSource::Add(profile, theme); | 1043 content::URLDataSource::Add(profile, theme); |
1043 #endif | 1044 #endif |
1044 | 1045 |
1045 content::URLDataSource::Add(profile, new AboutUIHTMLSource(name, profile)); | 1046 content::URLDataSource::Add(profile, new AboutUIHTMLSource(name, profile)); |
1046 } | 1047 } |
OLD | NEW |