| 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 "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/prefs/pref_notifier.h" |
| 8 #include "base/string_number_conversions.h" | 9 #include "base/string_number_conversions.h" |
| 9 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| 10 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| 11 #include "base/version.h" | 12 #include "base/version.h" |
| 12 #include "chrome/browser/extensions/admin_policy.h" | 13 #include "chrome/browser/extensions/admin_policy.h" |
| 13 #include "chrome/browser/extensions/api/omnibox/omnibox_api.h" | 14 #include "chrome/browser/extensions/api/omnibox/omnibox_api.h" |
| 14 #include "chrome/browser/extensions/extension_pref_store.h" | 15 #include "chrome/browser/extensions/extension_pref_store.h" |
| 15 #include "chrome/browser/extensions/extension_sorting.h" | 16 #include "chrome/browser/extensions/extension_sorting.h" |
| 16 #include "chrome/browser/prefs/pref_notifier.h" | |
| 17 #include "chrome/browser/prefs/pref_service.h" | 17 #include "chrome/browser/prefs/pref_service.h" |
| 18 #include "chrome/browser/prefs/scoped_user_pref_update.h" | 18 #include "chrome/browser/prefs/scoped_user_pref_update.h" |
| 19 #include "chrome/common/chrome_notification_types.h" | 19 #include "chrome/common/chrome_notification_types.h" |
| 20 #include "chrome/common/chrome_switches.h" | 20 #include "chrome/common/chrome_switches.h" |
| 21 #include "chrome/common/chrome_version_info.h" | 21 #include "chrome/common/chrome_version_info.h" |
| 22 #include "chrome/common/extensions/feature_switch.h" | 22 #include "chrome/common/extensions/feature_switch.h" |
| 23 #include "chrome/common/extensions/manifest.h" | 23 #include "chrome/common/extensions/manifest.h" |
| 24 #include "chrome/common/extensions/permissions/permission_set.h" | 24 #include "chrome/common/extensions/permissions/permission_set.h" |
| 25 #include "chrome/common/extensions/permissions/permissions_info.h" | 25 #include "chrome/common/extensions/permissions/permissions_info.h" |
| 26 #include "chrome/common/extensions/url_pattern.h" | 26 #include "chrome/common/extensions/url_pattern.h" |
| (...skipping 2193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2220 const ExtensionIdList& strings) { | 2220 const ExtensionIdList& strings) { |
| 2221 ListPrefUpdate update(prefs_, pref); | 2221 ListPrefUpdate update(prefs_, pref); |
| 2222 ListValue* list_of_values = update.Get(); | 2222 ListValue* list_of_values = update.Get(); |
| 2223 list_of_values->Clear(); | 2223 list_of_values->Clear(); |
| 2224 for (ExtensionIdList::const_iterator iter = strings.begin(); | 2224 for (ExtensionIdList::const_iterator iter = strings.begin(); |
| 2225 iter != strings.end(); ++iter) | 2225 iter != strings.end(); ++iter) |
| 2226 list_of_values->Append(new StringValue(*iter)); | 2226 list_of_values->Append(new StringValue(*iter)); |
| 2227 } | 2227 } |
| 2228 | 2228 |
| 2229 } // namespace extensions | 2229 } // namespace extensions |
| OLD | NEW |