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

Side by Side Diff: chrome/browser/policy/configuration_policy_handler_list_factory.cc

Issue 431493003: Implement policy for kNetworkPredictionOptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and increment policy id yet again. Created 6 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/policy/network_prediction_policy_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/policy/configuration_policy_handler_list_factory.h" 5 #include "chrome/browser/policy/configuration_policy_handler_list_factory.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 14 matching lines...) Expand all
25 #include "components/policy/core/common/schema.h" 25 #include "components/policy/core/common/schema.h"
26 #include "components/search_engines/default_search_policy_handler.h" 26 #include "components/search_engines/default_search_policy_handler.h"
27 #include "components/translate/core/common/translate_pref_names.h" 27 #include "components/translate/core/common/translate_pref_names.h"
28 #include "grit/components_strings.h" 28 #include "grit/components_strings.h"
29 #include "policy/policy_constants.h" 29 #include "policy/policy_constants.h"
30 30
31 #if !defined(OS_IOS) 31 #if !defined(OS_IOS)
32 #include "chrome/browser/net/disk_cache_dir_policy_handler.h" 32 #include "chrome/browser/net/disk_cache_dir_policy_handler.h"
33 #include "chrome/browser/policy/file_selection_dialogs_policy_handler.h" 33 #include "chrome/browser/policy/file_selection_dialogs_policy_handler.h"
34 #include "chrome/browser/policy/javascript_policy_handler.h" 34 #include "chrome/browser/policy/javascript_policy_handler.h"
35 #include "chrome/browser/policy/network_prediction_policy_handler.h"
35 #include "chrome/browser/sessions/restore_on_startup_policy_handler.h" 36 #include "chrome/browser/sessions/restore_on_startup_policy_handler.h"
36 #include "chrome/browser/sync/sync_policy_handler.h" 37 #include "chrome/browser/sync/sync_policy_handler.h"
37 #endif 38 #endif
38 39
39 #if defined(OS_CHROMEOS) 40 #if defined(OS_CHROMEOS)
40 #include "ash/magnifier/magnifier_constants.h" 41 #include "ash/magnifier/magnifier_constants.h"
41 #include "chrome/browser/chromeos/login/users/user_manager.h" 42 #include "chrome/browser/chromeos/login/users/user_manager.h"
42 #include "chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.h " 43 #include "chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.h "
43 #include "chromeos/dbus/power_policy_controller.h" 44 #include "chromeos/dbus/power_policy_controller.h"
44 #include "components/user_manager/user.h" 45 #include "components/user_manager/user.h"
(...skipping 29 matching lines...) Expand all
74 base::Value::TYPE_BOOLEAN }, 75 base::Value::TYPE_BOOLEAN },
75 { key::kRestoreOnStartupURLs, 76 { key::kRestoreOnStartupURLs,
76 prefs::kURLsToRestoreOnStartup, 77 prefs::kURLsToRestoreOnStartup,
77 base::Value::TYPE_LIST }, 78 base::Value::TYPE_LIST },
78 { key::kAlternateErrorPagesEnabled, 79 { key::kAlternateErrorPagesEnabled,
79 prefs::kAlternateErrorPagesEnabled, 80 prefs::kAlternateErrorPagesEnabled,
80 base::Value::TYPE_BOOLEAN }, 81 base::Value::TYPE_BOOLEAN },
81 { key::kSearchSuggestEnabled, 82 { key::kSearchSuggestEnabled,
82 prefs::kSearchSuggestEnabled, 83 prefs::kSearchSuggestEnabled,
83 base::Value::TYPE_BOOLEAN }, 84 base::Value::TYPE_BOOLEAN },
84 { key::kDnsPrefetchingEnabled,
85 prefs::kNetworkPredictionEnabled,
86 base::Value::TYPE_BOOLEAN },
87 { key::kBuiltInDnsClientEnabled, 85 { key::kBuiltInDnsClientEnabled,
88 prefs::kBuiltInDnsClientEnabled, 86 prefs::kBuiltInDnsClientEnabled,
89 base::Value::TYPE_BOOLEAN }, 87 base::Value::TYPE_BOOLEAN },
90 { key::kWPADQuickCheckEnabled, 88 { key::kWPADQuickCheckEnabled,
91 prefs::kQuickCheckEnabled, 89 prefs::kQuickCheckEnabled,
92 base::Value::TYPE_BOOLEAN }, 90 base::Value::TYPE_BOOLEAN },
93 { key::kDisableSpdy, 91 { key::kDisableSpdy,
94 prefs::kDisableSpdy, 92 prefs::kDisableSpdy,
95 base::Value::TYPE_BOOLEAN }, 93 base::Value::TYPE_BOOLEAN },
96 { key::kSafeBrowsingEnabled, 94 { key::kSafeBrowsingEnabled,
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 new ProxyPolicyHandler())); 567 new ProxyPolicyHandler()));
570 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 568 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
571 new URLBlacklistPolicyHandler())); 569 new URLBlacklistPolicyHandler()));
572 570
573 #if !defined(OS_IOS) 571 #if !defined(OS_IOS)
574 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 572 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
575 new FileSelectionDialogsPolicyHandler())); 573 new FileSelectionDialogsPolicyHandler()));
576 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 574 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
577 new JavascriptPolicyHandler())); 575 new JavascriptPolicyHandler()));
578 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 576 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
577 new NetworkPredictionPolicyHandler()));
578 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
579 new RestoreOnStartupPolicyHandler())); 579 new RestoreOnStartupPolicyHandler()));
580 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 580 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
581 new browser_sync::SyncPolicyHandler())); 581 new browser_sync::SyncPolicyHandler()));
582 582
583 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 583 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
584 new StringMappingListPolicyHandler( 584 new StringMappingListPolicyHandler(
585 key::kEnableDeprecatedWebPlatformFeatures, 585 key::kEnableDeprecatedWebPlatformFeatures,
586 prefs::kEnableDeprecatedWebPlatformFeatures, 586 prefs::kEnableDeprecatedWebPlatformFeatures,
587 base::Bind(GetDeprecatedFeaturesMap)))); 587 base::Bind(GetDeprecatedFeaturesMap))));
588 #endif // !defined(OS_IOS) 588 #endif // !defined(OS_IOS)
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 786 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
787 new ExternalDataPolicyHandler(key::kUserAvatarImage))); 787 new ExternalDataPolicyHandler(key::kUserAvatarImage)));
788 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 788 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
789 new ExternalDataPolicyHandler(key::kWallpaperImage))); 789 new ExternalDataPolicyHandler(key::kWallpaperImage)));
790 #endif // defined(OS_CHROMEOS) 790 #endif // defined(OS_CHROMEOS)
791 791
792 return handlers.Pass(); 792 return handlers.Pass();
793 } 793 }
794 794
795 } // namespace policy 795 } // namespace policy
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/policy/network_prediction_policy_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698