diff options
author | danno@chromium.org <danno@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-15 08:40:58 +0000 |
---|---|---|
committer | danno@chromium.org <danno@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-15 08:40:58 +0000 |
commit | ce1850e90e8472a05fd9efdb8379c0d399d0be78 (patch) | |
tree | 4d1c28169195a01381d23fac5b07187f0ef7ab25 /chrome/common/pref_store.cc | |
parent | 817b6121b50d77b2eacc5ce594cc20fe4fddef6d (diff) | |
download | chromium_src-ce1850e90e8472a05fd9efdb8379c0d399d0be78.zip chromium_src-ce1850e90e8472a05fd9efdb8379c0d399d0be78.tar.gz chromium_src-ce1850e90e8472a05fd9efdb8379c0d399d0be78.tar.bz2 |
When a proxy command line switches are specified, policy admin warning shouldn't be shown
Removed the logic from the ConfigurationPolicyPrefStore that sets managed preferences, it's now completely handled by CommandLinePrefStore. Moved the detection of conflicting proxy settings between the managed and other stores into the PrefValueStore. Implemented a sentinel value that can be used by stores to signal that they are returning the default value. Changed managed store to use this sentinel to hide non-managed proxy settings proxy settings when proxy policy is specified.
BUG=54792
TEST=manual
Review URL: http://codereview.chromium.org/3367021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62716 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/pref_store.cc')
-rw-r--r-- | chrome/common/pref_store.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/common/pref_store.cc b/chrome/common/pref_store.cc new file mode 100644 index 0000000..cf85417 --- /dev/null +++ b/chrome/common/pref_store.cc @@ -0,0 +1,14 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "chrome/common/pref_store.h" +#include "base/values.h" + +Value* PrefStore::CreateUseDefaultSentinelValue() { + return Value::CreateNullValue(); +} + +bool PrefStore::IsUseDefaultSentinelValue(Value* value) { + return value->IsType(Value::TYPE_NULL); +} |