|
Adds a GYP flag for desktop notifications (enabled by default) and stub out relevant code if set to 0.
In chrome/browser/task_manager I moved notifications related code to their own files and allow exclusion and stubbing via GYP. Similarly I have added stubs for other parts including a chrome/browser/notifications/notification_stubs.cc which takes care of classes within that directory.
I also created some static methods in DesktopNotificationService to wrap commonly used notification related code so that we reduce the amount of stubs required.
BUG=none
TEST=existing notification tests succeed
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88040
Total comments: 2
Total comments: 3
Total comments: 6
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+575 lines, -211 lines) |
Patch |
|
M |
build/common.gypi
|
View
|
1
2
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chrome_content_browser_client.cc
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/desktop_notification_handler.h
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/desktop_notification_handler.cc
|
View
|
1
|
1 chunk |
+9 lines, -3 lines |
0 comments
|
Download
|
|
A |
chrome/browser/desktop_notification_handler_stub.cc
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/notifications/desktop_notification_service.h
|
View
|
1
2
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/notifications/desktop_notification_service.cc
|
View
|
1
2
3
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/notifications/desktop_notifications_unittest.cc
|
View
|
1
2
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
|
A |
chrome/browser/notifications/notification_stubs.cc
|
View
|
1
2
|
1 chunk |
+176 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/notifications/notification_ui_manager.h
|
View
|
1
2
|
3 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/notifications/notification_ui_manager.cc
|
View
|
1
2
3
|
1 chunk |
+7 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/task_manager/task_manager.cc
|
View
|
|
1 chunk |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/task_manager/task_manager_browsertest.cc
|
View
|
|
1 chunk |
+0 lines, -33 lines |
0 comments
|
Download
|
|
A |
chrome/browser/task_manager/task_manager_notification_browsertest.cc
|
View
|
|
1 chunk |
+106 lines, -0 lines |
0 comments
|
Download
|
|
A |
chrome/browser/task_manager/task_manager_notification_resource_provider.cc
|
View
|
|
1 chunk |
+171 lines, -0 lines |
0 comments
|
Download
|
|
A |
chrome/browser/task_manager/task_manager_notification_resource_provider_stub.cc
|
View
|
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/task_manager/task_manager_resource_providers.h
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/task_manager/task_manager_resource_providers.cc
|
View
|
|
2 chunks |
+0 lines, -148 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_browser.gypi
|
View
|
1
2
|
4 chunks |
+21 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/chrome_tests.gypi
|
View
|
1
2
|
6 chunks |
+17 lines, -8 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_message_filter.h
|
View
|
1
2
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_message_filter.cc
|
View
|
1
2
|
3 chunks |
+6 lines, -5 lines |
1 comment
|
Download
|
Total messages: 12 (0 generated)
|