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

Unified Diff: chrome/browser/notifications/desktop_notification_service.cc

Issue 8827013: Move/replace/rename URL-based extension getters from ExtensionService to/in ExtensionSet. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: :memory Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/notifications/desktop_notification_service.cc
diff --git a/chrome/browser/notifications/desktop_notification_service.cc b/chrome/browser/notifications/desktop_notification_service.cc
index 8a05b621d62f9d932f4e9c307984af28fd9561df..9bc74ac3a239bedd4f3380c90f354bc01b887ee1 100644
--- a/chrome/browser/notifications/desktop_notification_service.cc
+++ b/chrome/browser/notifications/desktop_notification_service.cc
@@ -406,9 +406,10 @@ string16 DesktopNotificationService::DisplayNameForOrigin(
const GURL& origin) {
// If the source is an extension, lookup the display name.
if (origin.SchemeIs(chrome::kExtensionScheme)) {
- ExtensionService* ext_service = profile_->GetExtensionService();
- if (ext_service) {
- const Extension* extension = ext_service->GetExtensionByURL(origin);
+ ExtensionService* extension_service = profile_->GetExtensionService();
+ if (extension_service) {
+ const Extension* extension =
+ extension_service->extensions()->GetByURL(ExtensionURLInfo(origin));
if (extension)
return UTF8ToUTF16(extension->name());
}

Powered by Google App Engine
This is Rietveld 408576698