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

Unified Diff: chrome/browser/ui/prefs/prefs_tab_helper.cc

Issue 785723002: Add new extension APIs related to animation policy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Code Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/prefs/prefs_tab_helper.cc
diff --git a/chrome/browser/ui/prefs/prefs_tab_helper.cc b/chrome/browser/ui/prefs/prefs_tab_helper.cc
index 3f7ba0db6ee1279564af61547f9f668cc9c3a063..40d03e53ce2667b3b1903a89923de94f7c788b6b 100644
--- a/chrome/browser/ui/prefs/prefs_tab_helper.cc
+++ b/chrome/browser/ui/prefs/prefs_tab_helper.cc
@@ -49,6 +49,10 @@
#include "base/win/windows_version.h"
#endif
+#if defined(ENABLE_EXTENSIONS)
+#include "chrome/browser/accessibility/animation_policy_prefs.h"
+#endif
+
using content::WebContents;
using content::WebPreferences;
@@ -58,6 +62,9 @@ namespace {
// The list of prefs we want to observe.
const char* kPrefsToObserve[] = {
+#if defined(ENABLE_EXTENSIONS)
+ prefs::kAnimationPolicy,
+#endif
prefs::kDefaultCharset,
prefs::kDisable3DAPIs,
prefs::kEnableHyperlinkAuditing,
@@ -627,6 +634,10 @@ void PrefsTabHelper::RegisterProfilePrefs(
}
}
+#if defined(ENABLE_EXTENSIONS)
+ RegisterAnimationPolicyPrefs(registry);
+#endif
+
// Register per-script font prefs that don't have defaults.
#if !defined(OS_ANDROID)
RegisterFontFamilyPrefs(registry, fonts_with_defaults);

Powered by Google App Engine
This is Rietveld 408576698