|
Remove CrApplication dependency from base
Add a @protocol CrAppProtocol that clients of base must implement in their NSApplication subclass, and let base depend only on this protocol.
Let MessagePumpNSApplication::DoRun() no longer initialize NSApplication (fixes a TODO).
Add a MockCrApplication that the simple unittests in base and app can use, move chrome_application to chrome/common.
Test shell might run nested run loops, so I gave it a real but simplified CrAppProtocol implementation.
BUG= 62968, 46929
TEST=Everything still works. The PDF plugin prints one fewer warning when loaded.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=69615
Total comments: 17
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+144 lines, -47 lines) |
Patch |
 |
M |
app/animation_container_unittest.cc
|
View
|
1
2
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
app/test_suite.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/base.gyp
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/base.gypi
|
View
|
1
2
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
base/mac_util_unittest.mm
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
base/message_pump_mac.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+13 lines, -4 lines |
0 comments
|
Download
|
 |
M |
base/message_pump_mac.mm
|
View
|
1
2
3
4
5
6
7
8
9
|
3 chunks |
+3 lines, -8 lines |
0 comments
|
Download
|
 |
A |
base/test/mock_chrome_application_mac.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+28 lines, -0 lines |
0 comments
|
Download
|
 |
A |
base/test/mock_chrome_application_mac.mm
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chrome_browser_application_mac.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chrome_browser_application_mac.mm
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/render_widget_host_view_mac.mm
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/tab_contents/popup_menu_helper_mac.mm
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/tab_contents/tab_contents_view_mac.mm
|
View
|
1
2
3
4
5
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h
|
View
|
1
2
3
4
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/cocoa_test_helper.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser.gypi
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/chrome_common.gypi
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
chrome/common/chrome_application_mac.h
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
3 chunks |
+6 lines, -7 lines |
0 comments
|
Download
|
 |
A + |
chrome/common/chrome_application_mac.mm
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+10 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/common/sandbox_mac.mm
|
View
|
1
2
3
4
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/nacl/nacl_main_platform_delegate_mac.mm
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/plugin/plugin_main_mac.mm
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/renderer/renderer_main_platform_delegate_mac.mm
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/test/out_of_proc_test_runner.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
webkit/tools/test_shell/test_shell_platform_delegate_mac.mm
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
3 chunks |
+25 lines, -3 lines |
0 comments
|
Download
|
Total messages: 6 (0 generated)
|