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

Unified Diff: chrome/browser/task_manager/task_manager.cc

Issue 7053041: Add a Create method to DesktopNotificationHandler and stubs for the notification objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 6 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
Index: chrome/browser/task_manager/task_manager.cc
diff --git a/chrome/browser/task_manager/task_manager.cc b/chrome/browser/task_manager/task_manager.cc
index 61166ea3cd2b6635f83fe0eb3167243873aae2bf..4fe6403016ff7db797324e86ed2cacbeb53e2ca8 100644
--- a/chrome/browser/task_manager/task_manager.cc
+++ b/chrome/browser/task_manager/task_manager.cc
@@ -86,8 +86,11 @@ TaskManagerModel::TaskManagerModel(TaskManager* task_manager)
new TaskManagerChildProcessResourceProvider(task_manager));
AddResourceProvider(
new TaskManagerExtensionProcessResourceProvider(task_manager));
- AddResourceProvider(
- new TaskManagerNotificationResourceProvider(task_manager));
+
+ TaskManager::ResourceProvider* provider =
+ TaskManagerNotificationResourceProvider::Create(task_manager);
+ if (provider)
+ AddResourceProvider(provider);
}
TaskManagerModel::~TaskManagerModel() {

Powered by Google App Engine
This is Rietveld 408576698