From a366880f8475fa9e0e70ace062af10654b297574 Mon Sep 17 00:00:00 2001 From: "thakis@chromium.org" Date: Sat, 18 Dec 2010 01:18:29 +0000 Subject: 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. Review URL: http://codereview.chromium.org/5950003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69615 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/chrome_common.gypi | 2 ++ 1 file changed, 2 insertions(+) (limited to 'chrome/chrome_common.gypi') diff --git a/chrome/chrome_common.gypi b/chrome/chrome_common.gypi index b8d4d5d..80c1b0e 100644 --- a/chrome/chrome_common.gypi +++ b/chrome/chrome_common.gypi @@ -28,6 +28,8 @@ 'common/app_mode_common_mac.h', 'common/app_mode_common_mac.mm', 'common/bindings_policy.h', + 'common/chrome_application_mac.h', + 'common/chrome_application_mac.mm', 'common/child_process.cc', 'common/child_process.h', 'common/child_process_info.cc', -- cgit v1.1