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

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

Issue 1102733002: Remove most occurences of PrefRegistrySyncable::UNSYNCABLE_PREF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs-add-reg-funcs
Patch Set: Created 5 years, 8 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/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 810cfa1384f4a322783e3c61286bc34a9d3d7df1..3f9927bc9aaea1ae0788386691947e5b843a6500 100644
--- a/chrome/browser/ui/gesture_prefs_observer_factory_aura.cc
+++ b/chrome/browser/ui/gesture_prefs_observer_factory_aura.cc
@@ -205,8 +205,7 @@ void GesturePrefsObserverFactoryAura::RegisterOverscrollPrefs(
for (size_t i = 0; i < overscroll_prefs.size(); ++i) {
registry->RegisterDoublePref(
overscroll_prefs[i].pref_name,
- content::GetOverscrollConfig(overscroll_prefs[i].config),
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ content::GetOverscrollConfig(overscroll_prefs[i].config));
}
}
@@ -215,24 +214,17 @@ void GesturePrefsObserverFactoryAura::RegisterProfilePrefs(
GestureConfiguration* gesture_config = GestureConfiguration::GetInstance();
registry->RegisterIntegerPref(
prefs::kFlingMaxCancelToDownTimeInMs,
- gesture_config->fling_max_cancel_to_down_time_in_ms(),
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
- registry->RegisterIntegerPref(
- prefs::kFlingMaxTapGapTimeInMs,
- gesture_config->fling_max_tap_gap_time_in_ms(),
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ gesture_config->fling_max_cancel_to_down_time_in_ms());
+ registry->RegisterIntegerPref(prefs::kFlingMaxTapGapTimeInMs,
+ gesture_config->fling_max_tap_gap_time_in_ms());
registry->RegisterIntegerPref(
prefs::kTabScrubActivationDelayInMs,
- gesture_config->tab_scrub_activation_delay_in_ms(),
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
- registry->RegisterIntegerPref(
- prefs::kSemiLongPressTimeInMs,
- gesture_config->semi_long_press_time_in_ms(),
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ gesture_config->tab_scrub_activation_delay_in_ms());
+ registry->RegisterIntegerPref(prefs::kSemiLongPressTimeInMs,
+ gesture_config->semi_long_press_time_in_ms());
registry->RegisterDoublePref(
prefs::kMaxSeparationForGestureTouchesInPixels,
- gesture_config->max_separation_for_gesture_touches_in_pixels(),
- user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ gesture_config->max_separation_for_gesture_touches_in_pixels());
RegisterOverscrollPrefs(registry);
}
« no previous file with comments | « chrome/browser/ui/cocoa/window_size_autosaver_unittest.mm ('k') | chrome/browser/ui/network_profile_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698