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

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: extent 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..8c3c8c2d5dad19fde3a7dcd4abcfe7e410f56da2 100644
--- a/chrome/browser/notifications/desktop_notification_service.cc
+++ b/chrome/browser/notifications/desktop_notification_service.cc
@@ -408,7 +408,8 @@ string16 DesktopNotificationService::DisplayNameForOrigin(
if (origin.SchemeIs(chrome::kExtensionScheme)) {
ExtensionService* ext_service = profile_->GetExtensionService();
if (ext_service) {
- const Extension* extension = ext_service->GetExtensionByURL(origin);
+ const Extension* extension =
+ ext_service->extensions()->GetByURL(ExtensionURLInfo(origin));
abarth-chromium 2011/12/07 23:51:44 Same here.
Yoyo Zhou 2011/12/08 20:52:17 Turns out this one is actually also a WebSecurityO
if (extension)
return UTF8ToUTF16(extension->name());
}

Powered by Google App Engine
This is Rietveld 408576698