Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(654)

Side by Side Diff: chrome/browser/extensions/permissions_updater.cc

Issue 11365181: Remove GetExtensionService from Profile. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: replace missing extension_system include Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/page_action_browsertest.cc ('k') | chrome/browser/extensions/plugin_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698