diff options
author | lzheng@chromium.org <lzheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-14 06:37:18 +0000 |
---|---|---|
committer | lzheng@chromium.org <lzheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-14 06:37:18 +0000 |
commit | 6b75ec3c19f7a05c9104ee4b1edf2074af88d5b9 (patch) | |
tree | c992c8e6606b6a7cf52e3e2427dd1a4d33c24e0a /chrome/common | |
parent | 7b291f9c1394495724ddd81306e982e840075c08 (diff) | |
download | chromium_src-6b75ec3c19f7a05c9104ee4b1edf2074af88d5b9.zip chromium_src-6b75ec3c19f7a05c9104ee4b1edf2074af88d5b9.tar.gz chromium_src-6b75ec3c19f7a05c9104ee4b1edf2074af88d5b9.tar.bz2 |
The change has the followings:
1. Auto-updating of extension blacklist.
2. Handle extensions in the blacklist. If an extension is in the blacklist,
a. browser will not load the extension at start time;
b. browser will unload the extension at running time;
c. browser will not install the extension;
BUG=12118
TEST=Verify behavior described above works (they should be covered in the unittests in this change).
Review URL: http://codereview.chromium.org/165164
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23423 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/pref_names.cc | 3 | ||||
-rw-r--r-- | chrome/common/pref_names.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/chrome/common/pref_names.cc b/chrome/common/pref_names.cc index 2414dc1..c86671f 100644 --- a/chrome/common/pref_names.cc +++ b/chrome/common/pref_names.cc @@ -532,6 +532,9 @@ const wchar_t kLastExtensionsUpdateCheck[] = L"extensions.autoupdate.last_check"; const wchar_t kNextExtensionsUpdateCheck[] = L"extensions.autoupdate.next_check"; +// Version number of last blacklist check +const wchar_t kExtensionBlacklistUpdateVersion[] = + L"extensions.blacklistupdate.version"; // New Tab Page URLs that should not be shown as most visited thumbnails. const wchar_t kNTPMostVisitedURLsBlacklist[] = L"ntp.most_visited_blacklist"; diff --git a/chrome/common/pref_names.h b/chrome/common/pref_names.h index d620347..94e8a5e 100644 --- a/chrome/common/pref_names.h +++ b/chrome/common/pref_names.h @@ -200,6 +200,8 @@ extern const wchar_t kEnableUserScripts[]; extern const wchar_t kLastExtensionsUpdateCheck[]; extern const wchar_t kNextExtensionsUpdateCheck[]; +extern const wchar_t kExtensionBlacklistUpdateVersion[]; + extern const wchar_t kNTPMostVisitedURLsBlacklist[]; extern const wchar_t kNTPMostVisitedPinnedURLs[]; extern const wchar_t kNTPTipsCache[]; |