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

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
« no previous file with comments | « chrome/browser/chromeos/preferences.cc ('k') | chrome/browser/ui/ash/chrome_shell_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 base::Value::TYPE_BOOLEAN }, 459 base::Value::TYPE_BOOLEAN },
460 { key::kTouchVirtualKeyboardEnabled, 460 { key::kTouchVirtualKeyboardEnabled,
461 prefs::kTouchVirtualKeyboardEnabled, 461 prefs::kTouchVirtualKeyboardEnabled,
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::kForceMaximizeOnFirstRun,
470 prefs::kForceMaximizeOnFirstRun,
471 base::Value::TYPE_BOOLEAN },
469 #endif // defined(OS_CHROMEOS) 472 #endif // defined(OS_CHROMEOS)
470 473
471 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) 474 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
472 { key::kBackgroundModeEnabled, 475 { key::kBackgroundModeEnabled,
473 prefs::kBackgroundModeEnabled, 476 prefs::kBackgroundModeEnabled,
474 base::Value::TYPE_BOOLEAN }, 477 base::Value::TYPE_BOOLEAN },
475 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS) 478 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
476 479
477 #if defined(OS_ANDROID) 480 #if defined(OS_ANDROID)
478 { key::kDataCompressionProxyEnabled, 481 { key::kDataCompressionProxyEnabled,
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 handlers->AddHandler(make_scoped_ptr(new SimpleSchemaValidatingPolicyHandler( 744 handlers->AddHandler(make_scoped_ptr(new SimpleSchemaValidatingPolicyHandler(
742 key::kSessionLocales, NULL, chrome_schema, SCHEMA_STRICT, 745 key::kSessionLocales, NULL, chrome_schema, SCHEMA_STRICT,
743 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED, 746 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED,
744 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED))); 747 SimpleSchemaValidatingPolicyHandler::MANDATORY_PROHIBITED)));
745 #endif // defined(OS_CHROMEOS) 748 #endif // defined(OS_CHROMEOS)
746 749
747 return handlers.Pass(); 750 return handlers.Pass();
748 } 751 }
749 752
750 } // namespace policy 753 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/preferences.cc ('k') | chrome/browser/ui/ash/chrome_shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698