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/permissions_updater.h" | 5 #include "chrome/browser/extensions/permissions_updater.h" |
6 | 6 |
7 #include "base/json/json_writer.h" | 7 #include "base/json/json_writer.h" |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/extensions/api/permissions/permissions_api_helpers.h" | 10 #include "chrome/browser/extensions/api/permissions/permissions_api_helpers.h" |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 changed->apis(), | 219 changed->apis(), |
220 changed->explicit_hosts(), | 220 changed->explicit_hosts(), |
221 changed->scriptable_hosts())); | 221 changed->scriptable_hosts())); |
222 } | 222 } |
223 | 223 |
224 // Trigger the onAdded and onRemoved events in the extension. | 224 // Trigger the onAdded and onRemoved events in the extension. |
225 DispatchEvent(extension->id(), event_name, changed); | 225 DispatchEvent(extension->id(), event_name, changed); |
226 } | 226 } |
227 | 227 |
228 ExtensionPrefs* PermissionsUpdater::GetExtensionPrefs() { | 228 ExtensionPrefs* PermissionsUpdater::GetExtensionPrefs() { |
229 return profile_->GetExtensionService()->extension_prefs(); | 229 return extensions::ExtensionSystem::Get(profile_)->extension_service()-> |
| 230 extension_prefs(); |
230 } | 231 } |
231 | 232 |
232 } // namespace extensions | 233 } // namespace extensions |
OLD | NEW |