Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(947)

Side by Side Diff: chrome/browser/ui/webui/options/core_options_handler.cc

Issue 2276823003: Change many chrome/browser includes to use qualified paths. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/core_options_handler.h" 5 #include "chrome/browser/ui/webui/options/core_options_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
(...skipping 11 matching lines...) Expand all
22 #include "chrome/browser/extensions/extension_service.h" 22 #include "chrome/browser/extensions/extension_service.h"
23 #include "chrome/browser/extensions/extension_util.h" 23 #include "chrome/browser/extensions/extension_util.h"
24 #include "chrome/browser/profiles/profile.h" 24 #include "chrome/browser/profiles/profile.h"
25 #include "chrome/common/chrome_switches.h" 25 #include "chrome/common/chrome_switches.h"
26 #include "chrome/common/pref_names.h" 26 #include "chrome/common/pref_names.h"
27 #include "chrome/common/url_constants.h" 27 #include "chrome/common/url_constants.h"
28 #include "chrome/grit/chromium_strings.h" 28 #include "chrome/grit/chromium_strings.h"
29 #include "chrome/grit/generated_resources.h" 29 #include "chrome/grit/generated_resources.h"
30 #include "chrome/grit/locale_settings.h" 30 #include "chrome/grit/locale_settings.h"
31 #include "components/proxy_config/proxy_config_pref_names.h" 31 #include "components/proxy_config/proxy_config_pref_names.h"
32 #include "components/strings/grit/components_strings.h"
32 #include "components/url_formatter/url_fixer.h" 33 #include "components/url_formatter/url_fixer.h"
33 #include "content/public/browser/notification_details.h" 34 #include "content/public/browser/notification_details.h"
34 #include "content/public/browser/notification_types.h" 35 #include "content/public/browser/notification_types.h"
35 #include "content/public/browser/user_metrics.h" 36 #include "content/public/browser/user_metrics.h"
36 #include "content/public/browser/web_ui.h" 37 #include "content/public/browser/web_ui.h"
37 #include "extensions/browser/extension_pref_value_map.h" 38 #include "extensions/browser/extension_pref_value_map.h"
38 #include "extensions/browser/extension_pref_value_map_factory.h" 39 #include "extensions/browser/extension_pref_value_map_factory.h"
39 #include "extensions/browser/extension_registry.h" 40 #include "extensions/browser/extension_registry.h"
40 #include "extensions/browser/extension_system.h" 41 #include "extensions/browser/extension_system.h"
41 #include "extensions/common/extension.h" 42 #include "extensions/common/extension.h"
42 #include "grit/components_strings.h"
43 #include "ui/base/l10n/l10n_util.h" 43 #include "ui/base/l10n/l10n_util.h"
44 #include "url/gurl.h" 44 #include "url/gurl.h"
45 45
46 using base::UserMetricsAction; 46 using base::UserMetricsAction;
47 47
48 namespace options { 48 namespace options {
49 49
50 namespace { 50 namespace {
51 51
52 // Whether "controlledBy" property of pref value sent to options web UI needs to 52 // Whether "controlledBy" property of pref value sent to options web UI needs to
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 plugin_status_pref_setter_.IsPepperFlashSettingsEnabled()); 657 plugin_status_pref_setter_.IsPepperFlashSettingsEnabled());
658 web_ui()->CallJavascriptFunctionUnsafe( 658 web_ui()->CallJavascriptFunctionUnsafe(
659 "options.OptionsPage.setPepperFlashSettingsEnabled", enabled); 659 "options.OptionsPage.setPepperFlashSettingsEnabled", enabled);
660 } 660 }
661 661
662 bool CoreOptionsHandler::IsUserUnsupervised(const base::Value* to_value) { 662 bool CoreOptionsHandler::IsUserUnsupervised(const base::Value* to_value) {
663 return !Profile::FromWebUI(web_ui())->IsSupervised(); 663 return !Profile::FromWebUI(web_ui())->IsSupervised();
664 } 664 }
665 665
666 } // namespace options 666 } // namespace options
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698