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

Unified Diff: chrome/browser/themes/theme_service.cc

Issue 11365181: Remove GetExtensionService from Profile. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: response to sky Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/themes/theme_service.cc
diff --git a/chrome/browser/themes/theme_service.cc b/chrome/browser/themes/theme_service.cc
index 027315d34e2eb78af327768d9c631ff8f90eca72..9faf216f04eddf6ef5683ee86b1d9473465e2120 100644
--- a/chrome/browser/themes/theme_service.cc
+++ b/chrome/browser/themes/theme_service.cc
@@ -359,7 +359,8 @@ void ThemeService::SetTheme(const Extension* extension) {
void ThemeService::RemoveUnusedThemes() {
if (!profile_)
return;
- ExtensionService* service = profile_->GetExtensionService();
+ ExtensionService* service =
+ extensions::ExtensionSystem::Get(profile_)->extension_service();
if (!service)
return;
std::string current_theme = GetThemeID();
@@ -613,7 +614,8 @@ void ThemeService::LoadThemePrefs() {
} else {
// TODO(erg): We need to pop up a dialog informing the user that their
// theme is being migrated.
- ExtensionService* service = profile_->GetExtensionService();
+ ExtensionService* service =
+ extensions::ExtensionSystem::Get(profile_)->extension_service();
if (service) {
const Extension* extension =
service->GetExtensionById(current_id, false);

Powered by Google App Engine
This is Rietveld 408576698