OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_service.h" | 5 #include "chrome/browser/extensions/extension_service.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <iterator> | 8 #include <iterator> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1170 if (extensions::PermissionsData::HasHostPermission( | 1170 if (extensions::PermissionsData::HasHostPermission( |
1171 extension, GURL(chrome::kChromeUIThemeURL))) { | 1171 extension, GURL(chrome::kChromeUIThemeURL))) { |
1172 ThemeSource* theme_source = new ThemeSource(profile_); | 1172 ThemeSource* theme_source = new ThemeSource(profile_); |
1173 content::URLDataSource::Add(profile_, theme_source); | 1173 content::URLDataSource::Add(profile_, theme_source); |
1174 } | 1174 } |
1175 #endif | 1175 #endif |
1176 | 1176 |
1177 // Same for chrome://thumb/ resources. | 1177 // Same for chrome://thumb/ resources. |
1178 if (extensions::PermissionsData::HasHostPermission( | 1178 if (extensions::PermissionsData::HasHostPermission( |
1179 extension, GURL(chrome::kChromeUIThumbnailURL))) { | 1179 extension, GURL(chrome::kChromeUIThumbnailURL))) { |
1180 ThumbnailSource* thumbnail_source = new ThumbnailSource(profile_); | 1180 ThumbnailSource* thumbnail_source = new ThumbnailSource(profile_, false); |
1181 content::URLDataSource::Add(profile_, thumbnail_source); | 1181 content::URLDataSource::Add(profile_, thumbnail_source); |
1182 } | 1182 } |
1183 } | 1183 } |
1184 | 1184 |
1185 void ExtensionService::NotifyExtensionUnloaded( | 1185 void ExtensionService::NotifyExtensionUnloaded( |
1186 const Extension* extension, | 1186 const Extension* extension, |
1187 extension_misc::UnloadedExtensionReason reason) { | 1187 extension_misc::UnloadedExtensionReason reason) { |
1188 UnloadedExtensionInfo details(extension, reason); | 1188 UnloadedExtensionInfo details(extension, reason); |
1189 content::NotificationService::current()->Notify( | 1189 content::NotificationService::current()->Notify( |
1190 chrome::NOTIFICATION_EXTENSION_UNLOADED, | 1190 chrome::NOTIFICATION_EXTENSION_UNLOADED, |
(...skipping 1964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3155 } | 3155 } |
3156 | 3156 |
3157 void ExtensionService::AddUpdateObserver(extensions::UpdateObserver* observer) { | 3157 void ExtensionService::AddUpdateObserver(extensions::UpdateObserver* observer) { |
3158 update_observers_.AddObserver(observer); | 3158 update_observers_.AddObserver(observer); |
3159 } | 3159 } |
3160 | 3160 |
3161 void ExtensionService::RemoveUpdateObserver( | 3161 void ExtensionService::RemoveUpdateObserver( |
3162 extensions::UpdateObserver* observer) { | 3162 extensions::UpdateObserver* observer) { |
3163 update_observers_.RemoveObserver(observer); | 3163 update_observers_.RemoveObserver(observer); |
3164 } | 3164 } |
OLD | NEW |