summaryrefslogtreecommitdiffstats
path: root/chrome/browser/protector/protected_prefs_watcher_unittest.cc
diff options
context:
space:
mode:
authorkalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-15 20:49:39 +0000
committerkalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-15 20:49:39 +0000
commitfdd679ba41268871b72cb48e5cda976c1ab7daaf (patch)
treee5ddf049d4c6526dfc512b2ea99e97e3031f4759 /chrome/browser/protector/protected_prefs_watcher_unittest.cc
parent97399a6604a14398deadcffd30745da1d9f47d7d (diff)
downloadchromium_src-fdd679ba41268871b72cb48e5cda976c1ab7daaf.zip
chromium_src-fdd679ba41268871b72cb48e5cda976c1ab7daaf.tar.gz
chromium_src-fdd679ba41268871b72cb48e5cda976c1ab7daaf.tar.bz2
Pull extension blacklist and policy logic out of ExtensionPrefs and into two
new classes: Blacklist for the blacklist logic, and StandardManagementPolicyProvider for the management policy component. This is a preliminary step to making the extension blacklist backed by safe browsing. Dumb blacklisting code will still live in ExtensionPrefs until the migration is complete. BUG=154149 TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/11410048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168020 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/protector/protected_prefs_watcher_unittest.cc')
-rw-r--r--chrome/browser/protector/protected_prefs_watcher_unittest.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/protector/protected_prefs_watcher_unittest.cc b/chrome/browser/protector/protected_prefs_watcher_unittest.cc
index 9b78059..f69b043 100644
--- a/chrome/browser/protector/protected_prefs_watcher_unittest.cc
+++ b/chrome/browser/protector/protected_prefs_watcher_unittest.cc
@@ -106,13 +106,13 @@ TEST_F(ProtectedPrefsWatcherTest, ExtensionPrefChange) {
FilePath extensions_install_dir =
profile_.GetPath().AppendASCII(ExtensionService::kInstallDirectoryName);
- scoped_ptr<extensions::ExtensionPrefs> extension_prefs(
- new extensions::ExtensionPrefs(profile_.GetPrefs(),
- extensions_install_dir,
- ExtensionPrefValueMapFactory::GetForProfile(
- &profile_)));
+ scoped_ptr<extensions::ExtensionPrefs> extension_prefs =
+ extensions::ExtensionPrefs::Create(
+ profile_.GetPrefs(),
+ extensions_install_dir,
+ ExtensionPrefValueMapFactory::GetForProfile(&profile_),
+ false); // extensions_disabled
std::string sample_id = extension_misc::kWebStoreAppId;
- extension_prefs->Init(false);
// Flip a pref value of an extension (this will actually add it to the list).
extension_prefs->SetAppNotificationDisabled(
sample_id, !extension_prefs->IsAppNotificationDisabled(sample_id));