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

Side by Side Diff: chrome/browser/policy/configuration_policy_handler_list_factory.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/policy/configuration_policy_handler_list_factory.h" 5 #include "chrome/browser/policy/configuration_policy_handler_list_factory.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 base::Value::TYPE_BOOLEAN }, 463 base::Value::TYPE_BOOLEAN },
464 { key::kTouchVirtualKeyboardEnabled, 464 { key::kTouchVirtualKeyboardEnabled,
465 prefs::kTouchVirtualKeyboardEnabled, 465 prefs::kTouchVirtualKeyboardEnabled,
466 base::Value::TYPE_BOOLEAN }, 466 base::Value::TYPE_BOOLEAN },
467 { key::kEasyUnlockAllowed, 467 { key::kEasyUnlockAllowed,
468 prefs::kEasyUnlockAllowed, 468 prefs::kEasyUnlockAllowed,
469 base::Value::TYPE_BOOLEAN }, 469 base::Value::TYPE_BOOLEAN },
470 { key::kCaptivePortalAuthenticationIgnoresProxy, 470 { key::kCaptivePortalAuthenticationIgnoresProxy,
471 prefs::kCaptivePortalAuthenticationIgnoresProxy, 471 prefs::kCaptivePortalAuthenticationIgnoresProxy,
472 base::Value::TYPE_BOOLEAN }, 472 base::Value::TYPE_BOOLEAN },
473 { key::kForceMaximizeOnFirstRun,
474 prefs::kForceMaximizeOnFirstRun,
475 base::Value::TYPE_BOOLEAN },
473 #endif // defined(OS_CHROMEOS) 476 #endif // defined(OS_CHROMEOS)
474 477
475 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) 478 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
476 { key::kBackgroundModeEnabled, 479 { key::kBackgroundModeEnabled,
477 prefs::kBackgroundModeEnabled, 480 prefs::kBackgroundModeEnabled,
478 base::Value::TYPE_BOOLEAN }, 481 base::Value::TYPE_BOOLEAN },
479 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS) 482 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
480 483
481 #if defined(OS_ANDROID) 484 #if defined(OS_ANDROID)
482 { key::kDataCompressionProxyEnabled, 485 { key::kDataCompressionProxyEnabled,
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 chrome_schema, 797 chrome_schema,
795 SCHEMA_STRICT, 798 SCHEMA_STRICT,
796 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, 799 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED,
797 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); 800 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED)));
798 #endif // defined(OS_CHROMEOS) 801 #endif // defined(OS_CHROMEOS)
799 802
800 return handlers.Pass(); 803 return handlers.Pass();
801 } 804 }
802 805
803 } // namespace policy 806 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698