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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 #include "chrome/browser/memory/tab_stats.h" | 42 #include "chrome/browser/memory/tab_stats.h" |
43 #include "chrome/browser/net/predictor.h" | 43 #include "chrome/browser/net/predictor.h" |
44 #include "chrome/browser/profiles/profile.h" | 44 #include "chrome/browser/profiles/profile.h" |
45 #include "chrome/browser/profiles/profile_manager.h" | 45 #include "chrome/browser/profiles/profile_manager.h" |
46 #include "chrome/browser/ui/browser_dialogs.h" | 46 #include "chrome/browser/ui/browser_dialogs.h" |
47 #include "chrome/common/chrome_paths.h" | 47 #include "chrome/common/chrome_paths.h" |
48 #include "chrome/common/url_constants.h" | 48 #include "chrome/common/url_constants.h" |
49 #include "chrome/grit/browser_resources.h" | 49 #include "chrome/grit/browser_resources.h" |
50 #include "chrome/grit/chromium_strings.h" | 50 #include "chrome/grit/chromium_strings.h" |
51 #include "chrome/grit/generated_resources.h" | 51 #include "chrome/grit/generated_resources.h" |
52 #include "chrome/grit/locale_settings.h" | |
53 #include "components/grit/components_resources.h" | 52 #include "components/grit/components_resources.h" |
54 #include "components/strings/grit/components_locale_settings.h" | 53 #include "components/strings/grit/components_locale_settings.h" |
55 #include "content/public/browser/browser_thread.h" | 54 #include "content/public/browser/browser_thread.h" |
56 #include "content/public/browser/render_process_host.h" | 55 #include "content/public/browser/render_process_host.h" |
57 #include "content/public/browser/render_view_host.h" | 56 #include "content/public/browser/render_view_host.h" |
58 #include "content/public/browser/url_data_source.h" | 57 #include "content/public/browser/url_data_source.h" |
59 #include "content/public/browser/web_contents.h" | 58 #include "content/public/browser/web_contents.h" |
60 #include "content/public/common/content_client.h" | 59 #include "content/public/common/content_client.h" |
61 #include "content/public/common/process_type.h" | 60 #include "content/public/common/process_type.h" |
62 #include "google_apis/gaia/google_service_auth_error.h" | 61 #include "google_apis/gaia/google_service_auth_error.h" |
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
788 Profile* profile = Profile::FromWebUI(web_ui); | 787 Profile* profile = Profile::FromWebUI(web_ui); |
789 | 788 |
790 #if !defined(OS_ANDROID) | 789 #if !defined(OS_ANDROID) |
791 // Set up the chrome://theme/ source. | 790 // Set up the chrome://theme/ source. |
792 ThemeSource* theme = new ThemeSource(profile); | 791 ThemeSource* theme = new ThemeSource(profile); |
793 content::URLDataSource::Add(profile, theme); | 792 content::URLDataSource::Add(profile, theme); |
794 #endif | 793 #endif |
795 | 794 |
796 content::URLDataSource::Add(profile, new AboutUIHTMLSource(name, profile)); | 795 content::URLDataSource::Add(profile, new AboutUIHTMLSource(name, profile)); |
797 } | 796 } |
OLD | NEW |