| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <iterator> | 7 #include <iterator> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/prefs/pref_notifier.h" | 10 #include "base/prefs/pref_notifier.h" |
| (...skipping 1738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1749 #if defined(TOOLKIT_VIEWS) | 1749 #if defined(TOOLKIT_VIEWS) |
| 1750 registry->RegisterIntegerPref( | 1750 registry->RegisterIntegerPref( |
| 1751 prefs::kBrowserActionContainerWidth, | 1751 prefs::kBrowserActionContainerWidth, |
| 1752 0, | 1752 0, |
| 1753 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 1753 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 1754 #endif | 1754 #endif |
| 1755 registry->RegisterDictionaryPref( | 1755 registry->RegisterDictionaryPref( |
| 1756 kInstallSignature, | 1756 kInstallSignature, |
| 1757 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 1757 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 1758 | 1758 |
| 1759 registry->RegisterListPref(prefs::kNativeMessagingBlacklist, |
| 1760 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 1761 registry->RegisterListPref(prefs::kNativeMessagingWhitelist, |
| 1762 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 1759 } | 1763 } |
| 1760 | 1764 |
| 1761 template <class ExtensionIdContainer> | 1765 template <class ExtensionIdContainer> |
| 1762 bool ExtensionPrefs::GetUserExtensionPrefIntoContainer( | 1766 bool ExtensionPrefs::GetUserExtensionPrefIntoContainer( |
| 1763 const char* pref, | 1767 const char* pref, |
| 1764 ExtensionIdContainer* id_container_out) { | 1768 ExtensionIdContainer* id_container_out) { |
| 1765 DCHECK(id_container_out->empty()); | 1769 DCHECK(id_container_out->empty()); |
| 1766 | 1770 |
| 1767 const base::Value* user_pref_value = prefs_->GetUserPrefValue(pref); | 1771 const base::Value* user_pref_value = prefs_->GetUserPrefValue(pref); |
| 1768 const base::ListValue* user_pref_as_list; | 1772 const base::ListValue* user_pref_as_list; |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1886 is_enabled = initial_state == Extension::ENABLED; | 1890 is_enabled = initial_state == Extension::ENABLED; |
| 1887 } | 1891 } |
| 1888 | 1892 |
| 1889 extension_pref_value_map_->RegisterExtension(extension_id, install_time, | 1893 extension_pref_value_map_->RegisterExtension(extension_id, install_time, |
| 1890 is_enabled); | 1894 is_enabled); |
| 1891 content_settings_store_->RegisterExtension(extension_id, install_time, | 1895 content_settings_store_->RegisterExtension(extension_id, install_time, |
| 1892 is_enabled); | 1896 is_enabled); |
| 1893 } | 1897 } |
| 1894 | 1898 |
| 1895 } // namespace extensions | 1899 } // namespace extensions |
| OLD | NEW |