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

Unified Diff: chrome/browser/ui/gesture_prefs_observer_factory_aura.cc

Issue 222783003: Remove kMinScrollSuccessiveVelocityEvents (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gesture_prefs_observer_factory_aura.cc
diff --git a/chrome/browser/ui/gesture_prefs_observer_factory_aura.cc b/chrome/browser/ui/gesture_prefs_observer_factory_aura.cc
index c7d64511b8c5ff03138f1e40187b6af1235c9f84..7e2b5a6ae7a256a814c1a1cbac0de4879d207156 100644
--- a/chrome/browser/ui/gesture_prefs_observer_factory_aura.cc
+++ b/chrome/browser/ui/gesture_prefs_observer_factory_aura.cc
@@ -27,10 +27,6 @@ using ui::GestureConfiguration;
namespace {
-// TODO(tdresser): Remove this deprecated pref. See crbug.com/339486.
-const char kMinScrollSuccessiveVelocityEvents[] =
- "gesture.min_scroll_successive_velocity_events";
-
struct OverscrollPref {
const char* pref_name;
content::OverscrollConfig config;
@@ -137,9 +133,6 @@ const char* kFlingTouchscreenPrefs[] = {
GesturePrefsObserver::GesturePrefsObserver(PrefService* prefs)
: prefs_(prefs) {
- // Clear for migration.
- prefs->ClearPref(kMinScrollSuccessiveVelocityEvents);
-
registrar_.Init(prefs);
registrar_.RemoveAll();
base::Closure callback = base::Bind(&GesturePrefsObserver::Update,
@@ -435,13 +428,6 @@ void GesturePrefsObserverFactoryAura::RegisterProfilePrefs(
prefs::kShowPressDelayInMS,
GestureConfiguration::show_press_delay_in_ms(),
user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
-
- // Register for migration.
- registry->RegisterIntegerPref(
- kMinScrollSuccessiveVelocityEvents,
- 0,
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
-
RegisterOverscrollPrefs(registry);
RegisterFlingCurveParameters(registry);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698