OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include "chrome/browser/ui/webui/options/sync_setup_handler.h" | 37 #include "chrome/browser/ui/webui/options/sync_setup_handler.h" |
38 #include "chrome/browser/ui/webui/theme_source.h" | 38 #include "chrome/browser/ui/webui/theme_source.h" |
39 #include "chrome/common/jstemplate_builder.h" | 39 #include "chrome/common/jstemplate_builder.h" |
40 #include "chrome/common/time_format.h" | 40 #include "chrome/common/time_format.h" |
41 #include "chrome/common/url_constants.h" | 41 #include "chrome/common/url_constants.h" |
42 #include "content/browser/browser_thread.h" | 42 #include "content/browser/browser_thread.h" |
43 #include "content/browser/renderer_host/render_view_host.h" | 43 #include "content/browser/renderer_host/render_view_host.h" |
44 #include "content/browser/tab_contents/tab_contents.h" | 44 #include "content/browser/tab_contents/tab_contents.h" |
45 #include "content/browser/tab_contents/tab_contents_delegate.h" | 45 #include "content/browser/tab_contents/tab_contents_delegate.h" |
46 #include "content/browser/user_metrics.h" | 46 #include "content/browser/user_metrics.h" |
47 #include "content/common/notification_type.h" | 47 #include "content/common/content_notification_types.h" |
48 #include "grit/chromium_strings.h" | 48 #include "grit/chromium_strings.h" |
49 #include "grit/generated_resources.h" | 49 #include "grit/generated_resources.h" |
50 #include "grit/locale_settings.h" | 50 #include "grit/locale_settings.h" |
51 #include "grit/options_resources.h" | 51 #include "grit/options_resources.h" |
52 #include "grit/theme_resources.h" | 52 #include "grit/theme_resources.h" |
53 #include "grit/theme_resources_standard.h" | 53 #include "grit/theme_resources_standard.h" |
54 #include "net/base/escape.h" | 54 #include "net/base/escape.h" |
55 #include "ui/base/resource/resource_bundle.h" | 55 #include "ui/base/resource/resource_bundle.h" |
56 | 56 |
57 #if defined(OS_CHROMEOS) | 57 #if defined(OS_CHROMEOS) |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 OptionsPageUIHandler* handler_raw) { | 350 OptionsPageUIHandler* handler_raw) { |
351 scoped_ptr<OptionsPageUIHandler> handler(handler_raw); | 351 scoped_ptr<OptionsPageUIHandler> handler(handler_raw); |
352 DCHECK(handler.get()); | 352 DCHECK(handler.get()); |
353 // Add only if handler's service is enabled. | 353 // Add only if handler's service is enabled. |
354 if (handler->IsEnabled()) { | 354 if (handler->IsEnabled()) { |
355 handler->GetLocalizedValues(localized_strings); | 355 handler->GetLocalizedValues(localized_strings); |
356 // Add handler to the list and also pass the ownership. | 356 // Add handler to the list and also pass the ownership. |
357 AddMessageHandler(handler.release()->Attach(this)); | 357 AddMessageHandler(handler.release()->Attach(this)); |
358 } | 358 } |
359 } | 359 } |
OLD | NEW |