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

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

Issue 13105002: Screenshot effect non-obvious (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: cleanup Created 7 years, 9 months 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
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/ui/ash/ash_init.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/notifications/message_center_notification_manager.cc
diff --git a/chrome/browser/notifications/message_center_notification_manager.cc b/chrome/browser/notifications/message_center_notification_manager.cc
index 44ffbdb248c8a5e70e3a83e05381051b4ad706d4..1836ecbe098a3b8786fd0c0a70a699d7f12c8dbd 100644
--- a/chrome/browser/notifications/message_center_notification_manager.cc
+++ b/chrome/browser/notifications/message_center_notification_manager.cc
@@ -365,8 +365,8 @@ std::string
MessageCenterNotificationManager::ProfileNotification::GetExtensionId() {
const ExtensionURLInfo url(notification().origin_url());
const ExtensionService* service = profile()->GetExtensionService();
- const extensions::Extension* extension =
- service->extensions()->GetExtensionOrAppByURL(url);
+ const extensions::Extension* extension = service ?
+ service->extensions()->GetExtensionOrAppByURL(url) : NULL;
return extension ? extension->id() : std::string();
}
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/ui/ash/ash_init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698