| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/extensions/extension_prefs.h" | 5 #include "chrome/browser/extensions/extension_prefs.h" |
| 6 | 6 |
| 7 #include "base/string_number_conversions.h" | 7 #include "base/string_number_conversions.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "chrome/browser/extensions/extension_pref_store.h" | 10 #include "chrome/browser/extensions/extension_pref_store.h" |
| (...skipping 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1540 bool ExtensionPrefs::HasIncognitoPrefValue(const std::string& pref_key) { | 1540 bool ExtensionPrefs::HasIncognitoPrefValue(const std::string& pref_key) { |
| 1541 bool has_incognito_pref_value = false; | 1541 bool has_incognito_pref_value = false; |
| 1542 extension_pref_value_map_->GetEffectivePrefValue(pref_key, | 1542 extension_pref_value_map_->GetEffectivePrefValue(pref_key, |
| 1543 true, | 1543 true, |
| 1544 &has_incognito_pref_value); | 1544 &has_incognito_pref_value); |
| 1545 return has_incognito_pref_value; | 1545 return has_incognito_pref_value; |
| 1546 } | 1546 } |
| 1547 | 1547 |
| 1548 // static | 1548 // static |
| 1549 void ExtensionPrefs::RegisterUserPrefs(PrefService* prefs) { | 1549 void ExtensionPrefs::RegisterUserPrefs(PrefService* prefs) { |
| 1550 prefs->RegisterDictionaryPref(kExtensionsPref); | 1550 prefs->RegisterDictionaryPref(kExtensionsPref, false /* don't sync pref */); |
| 1551 prefs->RegisterListPref(kExtensionToolbar); | 1551 prefs->RegisterListPref(kExtensionToolbar, false /* don't sync pref */); |
| 1552 prefs->RegisterIntegerPref(prefs::kExtensionToolbarSize, -1); | 1552 prefs->RegisterIntegerPref(prefs::kExtensionToolbarSize, |
| 1553 prefs->RegisterDictionaryPref(kExtensionsBlacklistUpdate); | 1553 -1, |
| 1554 prefs->RegisterListPref(prefs::kExtensionInstallAllowList); | 1554 false /* don't sync pref */); |
| 1555 prefs->RegisterListPref(prefs::kExtensionInstallDenyList); | 1555 prefs->RegisterDictionaryPref(kExtensionsBlacklistUpdate, |
| 1556 prefs->RegisterListPref(prefs::kExtensionInstallForceList); | 1556 false /* don't sync pref */); |
| 1557 prefs->RegisterStringPref(kWebStoreLogin, std::string() /* default_value */); | 1557 prefs->RegisterListPref(prefs::kExtensionInstallAllowList, |
| 1558 false /* don't sync pref */); |
| 1559 prefs->RegisterListPref(prefs::kExtensionInstallDenyList, |
| 1560 false /* don't sync pref */); |
| 1561 prefs->RegisterListPref(prefs::kExtensionInstallForceList, |
| 1562 false /* don't sync pref */); |
| 1563 prefs->RegisterStringPref(kWebStoreLogin, |
| 1564 std::string() /* default_value */, |
| 1565 false /* don't sync pref */); |
| 1558 } | 1566 } |
| OLD | NEW |