Chromium Code Reviews| Index: chrome/browser/accessibility/animation_policy_prefs.cc |
| diff --git a/chrome/browser/accessibility/animation_policy_prefs.cc b/chrome/browser/accessibility/animation_policy_prefs.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..45b795aae763b69a5f77a9b41d0f6298ee99afec |
| --- /dev/null |
| +++ b/chrome/browser/accessibility/animation_policy_prefs.cc |
| @@ -0,0 +1,19 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "chrome/browser/accessibility/animation_policy_prefs.h" |
| + |
| +#include "chrome/common/pref_names.h" |
| +#include "components/pref_registry/pref_registry_syncable.h" |
| + |
| +const char kAnimationPolicyAllowed[] = "allowed"; |
| +const char kAnimationPolicyOnce[] = "once"; |
| +const char kAnimationPolicyNone[] = "none"; |
| + |
| +void RegisterAnimationPolicyPrefs(user_prefs::PrefRegistrySyncable* registry) { |
|
jam
2015/02/03 16:27:01
you should call this directly from https://code.go
je_julie(Not used)
2015/02/04 02:20:30
Done.
|
| + registry->RegisterStringPref( |
| + prefs::kAnimationPolicy, |
| + kAnimationPolicyAllowed, |
| + user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| +} |