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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 | 326 |
327 input_method::InputMethodSyncer::RegisterProfilePrefs(registry); | 327 input_method::InputMethodSyncer::RegisterProfilePrefs(registry); |
328 | 328 |
329 registry->RegisterBooleanPref( | 329 registry->RegisterBooleanPref( |
330 prefs::kResolveTimezoneByGeolocation, true, | 330 prefs::kResolveTimezoneByGeolocation, true, |
331 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 331 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
332 | 332 |
333 registry->RegisterBooleanPref( | 333 registry->RegisterBooleanPref( |
334 prefs::kCaptivePortalAuthenticationIgnoresProxy, true, | 334 prefs::kCaptivePortalAuthenticationIgnoresProxy, true, |
335 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 335 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 336 |
| 337 registry->RegisterBooleanPref( |
| 338 prefs::kForceMaximizeOnFirstRun, false, |
| 339 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
336 } | 340 } |
337 | 341 |
338 void Preferences::InitUserPrefs(PrefServiceSyncable* prefs) { | 342 void Preferences::InitUserPrefs(PrefServiceSyncable* prefs) { |
339 prefs_ = prefs; | 343 prefs_ = prefs; |
340 | 344 |
341 BooleanPrefMember::NamedChangeCallback callback = | 345 BooleanPrefMember::NamedChangeCallback callback = |
342 base::Bind(&Preferences::OnPreferenceChanged, base::Unretained(this)); | 346 base::Bind(&Preferences::OnPreferenceChanged, base::Unretained(this)); |
343 | 347 |
344 performance_tracing_enabled_.Init(prefs::kPerformanceTracingEnabled, | 348 performance_tracing_enabled_.Init(prefs::kPerformanceTracingEnabled, |
345 prefs, callback); | 349 prefs, callback); |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
738 touch_hud_projection_enabled_.SetValue(enabled); | 742 touch_hud_projection_enabled_.SetValue(enabled); |
739 } | 743 } |
740 | 744 |
741 void Preferences::ActiveUserChanged(const user_manager::User* active_user) { | 745 void Preferences::ActiveUserChanged(const user_manager::User* active_user) { |
742 if (active_user != user_) | 746 if (active_user != user_) |
743 return; | 747 return; |
744 ApplyPreferences(REASON_ACTIVE_USER_CHANGED, ""); | 748 ApplyPreferences(REASON_ACTIVE_USER_CHANGED, ""); |
745 } | 749 } |
746 | 750 |
747 } // namespace chromeos | 751 } // namespace chromeos |
OLD | NEW |