OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/chromeos/preferences.h" | 5 #include "chrome/browser/chromeos/preferences.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "ash/autoclick/autoclick_controller.h" | 9 #include "ash/autoclick/autoclick_controller.h" |
10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 prefs::kShowPlanNotifications, | 285 prefs::kShowPlanNotifications, |
286 true, | 286 true, |
287 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 287 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
288 | 288 |
289 // 3G first-time usage promo will be shown at least once. | 289 // 3G first-time usage promo will be shown at least once. |
290 registry->RegisterBooleanPref( | 290 registry->RegisterBooleanPref( |
291 prefs::kShow3gPromoNotification, | 291 prefs::kShow3gPromoNotification, |
292 true, | 292 true, |
293 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 293 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
294 | 294 |
| 295 // Number of times Data Saver prompt has been shown on 3G data network. |
| 296 registry->RegisterIntegerPref( |
| 297 prefs::kDataSaverPromptsShown, |
| 298 0, |
| 299 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 300 |
295 // Initially all existing users would see "What's new" for current version | 301 // Initially all existing users would see "What's new" for current version |
296 // after update. | 302 // after update. |
297 registry->RegisterStringPref(prefs::kChromeOSReleaseNotesVersion, | 303 registry->RegisterStringPref(prefs::kChromeOSReleaseNotesVersion, |
298 "0.0.0.0", | 304 "0.0.0.0", |
299 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 305 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
300 | 306 |
301 registry->RegisterBooleanPref( | 307 registry->RegisterBooleanPref( |
302 prefs::kExternalStorageDisabled, | 308 prefs::kExternalStorageDisabled, |
303 false, | 309 false, |
304 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 310 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
732 touch_hud_projection_enabled_.SetValue(enabled); | 738 touch_hud_projection_enabled_.SetValue(enabled); |
733 } | 739 } |
734 | 740 |
735 void Preferences::ActiveUserChanged(const user_manager::User* active_user) { | 741 void Preferences::ActiveUserChanged(const user_manager::User* active_user) { |
736 if (active_user != user_) | 742 if (active_user != user_) |
737 return; | 743 return; |
738 ApplyPreferences(REASON_ACTIVE_USER_CHANGED, ""); | 744 ApplyPreferences(REASON_ACTIVE_USER_CHANGED, ""); |
739 } | 745 } |
740 | 746 |
741 } // namespace chromeos | 747 } // namespace chromeos |
OLD | NEW |