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

Side by Side Diff: chrome/browser/chromeos/preferences.cc

Issue 964503002: Implemented ForceMaximizeBrowserWindowOnFirstRun policy, added unit test and browser test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix after review Created 5 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 unified diff | Download patch
OLDNEW
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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 320
321 input_method::InputMethodSyncer::RegisterProfilePrefs(registry); 321 input_method::InputMethodSyncer::RegisterProfilePrefs(registry);
322 322
323 registry->RegisterBooleanPref( 323 registry->RegisterBooleanPref(
324 prefs::kResolveTimezoneByGeolocation, true, 324 prefs::kResolveTimezoneByGeolocation, true,
325 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 325 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
326 326
327 registry->RegisterBooleanPref( 327 registry->RegisterBooleanPref(
328 prefs::kCaptivePortalAuthenticationIgnoresProxy, true, 328 prefs::kCaptivePortalAuthenticationIgnoresProxy, true,
329 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 329 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
330
331 registry->RegisterBooleanPref(
332 prefs::kForceMaximizeOnFirstRun, false,
333 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
330 } 334 }
331 335
332 void Preferences::InitUserPrefs(PrefServiceSyncable* prefs) { 336 void Preferences::InitUserPrefs(PrefServiceSyncable* prefs) {
333 prefs_ = prefs; 337 prefs_ = prefs;
334 338
335 BooleanPrefMember::NamedChangeCallback callback = 339 BooleanPrefMember::NamedChangeCallback callback =
336 base::Bind(&Preferences::OnPreferenceChanged, base::Unretained(this)); 340 base::Bind(&Preferences::OnPreferenceChanged, base::Unretained(this));
337 341
338 performance_tracing_enabled_.Init(prefs::kPerformanceTracingEnabled, 342 performance_tracing_enabled_.Init(prefs::kPerformanceTracingEnabled,
339 prefs, callback); 343 prefs, callback);
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 touch_hud_projection_enabled_.SetValue(enabled); 736 touch_hud_projection_enabled_.SetValue(enabled);
733 } 737 }
734 738
735 void Preferences::ActiveUserChanged(const user_manager::User* active_user) { 739 void Preferences::ActiveUserChanged(const user_manager::User* active_user) {
736 if (active_user != user_) 740 if (active_user != user_)
737 return; 741 return;
738 ApplyPreferences(REASON_ACTIVE_USER_CHANGED, ""); 742 ApplyPreferences(REASON_ACTIVE_USER_CHANGED, "");
739 } 743 }
740 744
741 } // namespace chromeos 745 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698