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

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: Address Derek's comments 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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 { key::kDHEEnabled, 396 { key::kDHEEnabled,
397 ssl_config::prefs::kDHEEnabled, 397 ssl_config::prefs::kDHEEnabled,
398 base::Value::Type::BOOLEAN }, 398 base::Value::Type::BOOLEAN },
399 { key::kNTPContentSuggestionsEnabled, 399 { key::kNTPContentSuggestionsEnabled,
400 ntp_snippets::prefs::kEnableSnippets, 400 ntp_snippets::prefs::kEnableSnippets,
401 base::Value::Type::BOOLEAN }, 401 base::Value::Type::BOOLEAN },
402 #if defined(ENABLE_MEDIA_ROUTER) 402 #if defined(ENABLE_MEDIA_ROUTER)
403 { key::kEnableMediaRouter, 403 { key::kEnableMediaRouter,
404 prefs::kEnableMediaRouter, 404 prefs::kEnableMediaRouter,
405 base::Value::Type::BOOLEAN }, 405 base::Value::Type::BOOLEAN },
406 #if !defined(OS_ANDROID)
407 { key::kShowCastIconInToolbar,
408 prefs::kShowCastIconInToolbar,
409 base::Value::Type::BOOLEAN },
410 #endif // !defined(OS_ANDROID)
406 #endif // defined(ENABLE_MEDIA_ROUTER) 411 #endif // defined(ENABLE_MEDIA_ROUTER)
407 #if BUILDFLAG(ENABLE_WEBRTC) 412 #if BUILDFLAG(ENABLE_WEBRTC)
408 { key::kWebRtcUdpPortRange, 413 { key::kWebRtcUdpPortRange,
409 prefs::kWebRTCUDPPortRange, 414 prefs::kWebRTCUDPPortRange,
410 base::Value::Type::STRING }, 415 base::Value::Type::STRING },
411 #endif // BUILDFLAG(ENABLE_WEBRTC) 416 #endif // BUILDFLAG(ENABLE_WEBRTC)
412 #if !defined(OS_MACOSX) 417 #if !defined(OS_MACOSX)
413 { key::kFullscreenAllowed, 418 { key::kFullscreenAllowed,
414 prefs::kFullscreenAllowed, 419 prefs::kFullscreenAllowed,
415 base::Value::Type::BOOLEAN }, 420 base::Value::Type::BOOLEAN },
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 #endif // defined(OS_CHROMEOS) 997 #endif // defined(OS_CHROMEOS)
993 998
994 #if BUILDFLAG(ENABLE_PLUGINS) 999 #if BUILDFLAG(ENABLE_PLUGINS)
995 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>()); 1000 handlers->AddHandler(base::MakeUnique<PluginPolicyHandler>());
996 #endif // BUILDFLAG(ENABLE_PLUGINS) 1001 #endif // BUILDFLAG(ENABLE_PLUGINS)
997 1002
998 return handlers; 1003 return handlers;
999 } 1004 }
1000 1005
1001 } // namespace policy 1006 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698