diff options
author | gfeher@chromium.org <gfeher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-23 10:11:10 +0000 |
---|---|---|
committer | gfeher@chromium.org <gfeher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-23 10:11:10 +0000 |
commit | 6c751e787fac3664b2d099d91db6863bbe2bdc26 (patch) | |
tree | 9c6e682a741557b40b3668b07bab7e1582e81989 /base/values_util.h | |
parent | c540f5d9fa6840a17ffccc6a5898a84f45b670a3 (diff) | |
download | chromium_src-6c751e787fac3664b2d099d91db6863bbe2bdc26.zip chromium_src-6c751e787fac3664b2d099d91db6863bbe2bdc26.tar.gz chromium_src-6c751e787fac3664b2d099d91db6863bbe2bdc26.tar.bz2 |
Dynamic refresh for the silent extension install policy
Re-run ExternalPolicyExtensionProvider::VisitRegisteredExtension each time the policy-controlled preference prefs::kExtensionInstallForceList is changed. This will install new policy-controlled extensions. Those that are removed from the policy will only be uninstalled at next startup.
BUG=63179
TEST=ExtensionManagementTest.ExternalPolicyRefresh
Review URL: http://codereview.chromium.org/5120003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67078 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/values_util.h')
-rw-r--r-- | base/values_util.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/base/values_util.h b/base/values_util.h new file mode 100644 index 0000000..57b35c1 --- /dev/null +++ b/base/values_util.h @@ -0,0 +1,28 @@ +// 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. + +#ifndef BASE_VALUES_UTIL_H_ +#define BASE_VALUES_UTIL_H_ +#pragma once + +#include "base/values.h" +#include "base/ref_counted.h" + +class RefCountedList : public base::RefCountedThreadSafe<RefCountedList> { + public: + // Takes ownership of |list|. + explicit RefCountedList(ListValue* list); + virtual ~RefCountedList(); + + virtual ListValue* Get() { + return list_; + } + + private: + ListValue* list_; + + DISALLOW_COPY_AND_ASSIGN(RefCountedList); +}; + +#endif // BASE_VALUES_UTIL_H_ |