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/options/options_ui.h" | 5 #include "chrome/browser/ui/webui/options/options_ui.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 #include "chrome/browser/ui/webui/options/media_devices_selection_handler.h" | 47 #include "chrome/browser/ui/webui/options/media_devices_selection_handler.h" |
48 #include "chrome/browser/ui/webui/options/password_manager_handler.h" | 48 #include "chrome/browser/ui/webui/options/password_manager_handler.h" |
49 #include "chrome/browser/ui/webui/options/reset_profile_settings_handler.h" | 49 #include "chrome/browser/ui/webui/options/reset_profile_settings_handler.h" |
50 #include "chrome/browser/ui/webui/options/search_engine_manager_handler.h" | 50 #include "chrome/browser/ui/webui/options/search_engine_manager_handler.h" |
51 #include "chrome/browser/ui/webui/options/startup_pages_handler.h" | 51 #include "chrome/browser/ui/webui/options/startup_pages_handler.h" |
52 #include "chrome/browser/ui/webui/options/sync_setup_handler.h" | 52 #include "chrome/browser/ui/webui/options/sync_setup_handler.h" |
53 #include "chrome/browser/ui/webui/theme_source.h" | 53 #include "chrome/browser/ui/webui/theme_source.h" |
54 #include "chrome/common/features.h" | 54 #include "chrome/common/features.h" |
55 #include "chrome/common/url_constants.h" | 55 #include "chrome/common/url_constants.h" |
56 #include "chrome/grit/generated_resources.h" | 56 #include "chrome/grit/generated_resources.h" |
57 #include "chrome/grit/locale_settings.h" | |
58 #include "chrome/grit/options_resources.h" | 57 #include "chrome/grit/options_resources.h" |
59 #include "chrome/grit/theme_resources.h" | |
60 #include "components/omnibox/browser/autocomplete_match.h" | 58 #include "components/omnibox/browser/autocomplete_match.h" |
61 #include "components/omnibox/browser/autocomplete_result.h" | 59 #include "components/omnibox/browser/autocomplete_result.h" |
62 #include "components/strings/grit/components_strings.h" | 60 #include "components/strings/grit/components_strings.h" |
63 #include "content/public/browser/navigation_handle.h" | 61 #include "content/public/browser/navigation_handle.h" |
64 #include "content/public/browser/notification_types.h" | 62 #include "content/public/browser/notification_types.h" |
65 #include "content/public/browser/render_frame_host.h" | 63 #include "content/public/browser/render_frame_host.h" |
66 #include "content/public/browser/url_data_source.h" | 64 #include "content/public/browser/url_data_source.h" |
67 #include "content/public/browser/web_contents.h" | 65 #include "content/public/browser/web_contents.h" |
68 #include "content/public/browser/web_contents_delegate.h" | 66 #include "content/public/browser/web_contents_delegate.h" |
69 #include "content/public/browser/web_ui.h" | 67 #include "content/public/browser/web_ui.h" |
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 // Add only if handler's service is enabled. | 650 // Add only if handler's service is enabled. |
653 if (handler->IsEnabled()) { | 651 if (handler->IsEnabled()) { |
654 // Add handler to the list and also pass the ownership. | 652 // Add handler to the list and also pass the ownership. |
655 web_ui()->AddMessageHandler(std::move(handler)); | 653 web_ui()->AddMessageHandler(std::move(handler)); |
656 handler_raw->GetLocalizedValues(localized_strings); | 654 handler_raw->GetLocalizedValues(localized_strings); |
657 handlers_.push_back(handler_raw); | 655 handlers_.push_back(handler_raw); |
658 } | 656 } |
659 } | 657 } |
660 | 658 |
661 } // namespace options | 659 } // namespace options |
OLD | NEW |