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

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

Issue 2559323002: Add a policy to always show the Cast toolbar icon (Closed)
Patch Set: Created 4 years 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 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 <limits.h> 7 #include <limits.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <utility> 10 #include <utility>
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 { key::kDHEEnabled, 403 { key::kDHEEnabled,
404 ssl_config::prefs::kDHEEnabled, 404 ssl_config::prefs::kDHEEnabled,
405 base::Value::Type::BOOLEAN }, 405 base::Value::Type::BOOLEAN },
406 { key::kNTPContentSuggestionsEnabled, 406 { key::kNTPContentSuggestionsEnabled,
407 ntp_snippets::prefs::kEnableSnippets, 407 ntp_snippets::prefs::kEnableSnippets,
408 base::Value::Type::BOOLEAN }, 408 base::Value::Type::BOOLEAN },
409 #if defined(ENABLE_MEDIA_ROUTER) 409 #if defined(ENABLE_MEDIA_ROUTER)
410 { key::kEnableMediaRouter, 410 { key::kEnableMediaRouter,
411 prefs::kEnableMediaRouter, 411 prefs::kEnableMediaRouter,
412 base::Value::Type::BOOLEAN }, 412 base::Value::Type::BOOLEAN },
413 #if !defined(OS_ANDROID)
414 { key::kShowCastIconInToolbar,
415 prefs::kShowCastIconInToolbar,
416 base::Value::Type::BOOLEAN },
417 #endif // !defined(OS_ANDROID)
413 #endif // defined(ENABLE_MEDIA_ROUTER) 418 #endif // defined(ENABLE_MEDIA_ROUTER)
414 #if BUILDFLAG(ENABLE_WEBRTC) 419 #if BUILDFLAG(ENABLE_WEBRTC)
415 { key::kWebRtcUdpPortRange, 420 { key::kWebRtcUdpPortRange,
416 prefs::kWebRTCUDPPortRange, 421 prefs::kWebRTCUDPPortRange,
417 base::Value::Type::STRING }, 422 base::Value::Type::STRING },
418 #endif // BUILDFLAG(ENABLE_WEBRTC) 423 #endif // BUILDFLAG(ENABLE_WEBRTC)
419 #if !defined(OS_MACOSX) 424 #if !defined(OS_MACOSX)
420 { key::kFullscreenAllowed, 425 { key::kFullscreenAllowed,
421 prefs::kFullscreenAllowed, 426 prefs::kFullscreenAllowed,
422 base::Value::Type::BOOLEAN }, 427 base::Value::Type::BOOLEAN },
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 #endif // defined(OS_CHROMEOS) 939 #endif // defined(OS_CHROMEOS)
935 940
936 #if BUILDFLAG(ENABLE_PLUGINS) 941 #if BUILDFLAG(ENABLE_PLUGINS)
937 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); 942 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>());
938 #endif // BUILDFLAG(ENABLE_PLUGINS) 943 #endif // BUILDFLAG(ENABLE_PLUGINS)
939 944
940 return handlers; 945 return handlers;
941 } 946 }
942 947
943 } // namespace policy 948 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698