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

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: 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 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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 base::Value::TYPE_BOOLEAN }, 462 base::Value::TYPE_BOOLEAN },
463 { key::kEasyUnlockAllowed, 463 { key::kEasyUnlockAllowed,
464 prefs::kEasyUnlockAllowed, 464 prefs::kEasyUnlockAllowed,
465 base::Value::TYPE_BOOLEAN }, 465 base::Value::TYPE_BOOLEAN },
466 { key::kCaptivePortalAuthenticationIgnoresProxy, 466 { key::kCaptivePortalAuthenticationIgnoresProxy,
467 prefs::kCaptivePortalAuthenticationIgnoresProxy, 467 prefs::kCaptivePortalAuthenticationIgnoresProxy,
468 base::Value::TYPE_BOOLEAN }, 468 base::Value::TYPE_BOOLEAN },
469 { key::kDeviceLoginScreenDomainAutoComplete, 469 { key::kDeviceLoginScreenDomainAutoComplete,
470 NULL, 470 NULL,
471 base::Value::TYPE_STRING }, 471 base::Value::TYPE_STRING },
472 { key::kForceMaximizeOnFirstRun,
473 prefs::kForceMaximizeOnFirstRun,
474 base::Value::TYPE_BOOLEAN },
472 #endif // defined(OS_CHROMEOS) 475 #endif // defined(OS_CHROMEOS)
473 476
474 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) 477 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
475 { key::kBackgroundModeEnabled, 478 { key::kBackgroundModeEnabled,
476 prefs::kBackgroundModeEnabled, 479 prefs::kBackgroundModeEnabled,
477 base::Value::TYPE_BOOLEAN }, 480 base::Value::TYPE_BOOLEAN },
478 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS) 481 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
479 482
480 #if defined(OS_ANDROID) 483 #if defined(OS_ANDROID)
481 { key::kDataCompressionProxyEnabled, 484 { key::kDataCompressionProxyEnabled,
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 handlers->AddHandler(make_scoped_ptr(new SimpleSchemaValidatingPolicyHandler( 747 handlers->AddHandler(make_scoped_ptr(new SimpleSchemaValidatingPolicyHandler(
745 key::kSessionLocales, NULL, chrome_schema, SCHEMA_STRICT, 748 key::kSessionLocales, NULL, chrome_schema, SCHEMA_STRICT,
746 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, 749 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED,
747 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); 750 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED)));
748 #endif // defined(OS_CHROMEOS) 751 #endif // defined(OS_CHROMEOS)
749 752
750 return handlers.Pass(); 753 return handlers.Pass();
751 } 754 }
752 755
753 } // namespace policy 756 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698