From 6f2660e7a1db2f25b95fd8b841abb38e313494a7 Mon Sep 17 00:00:00 2001 From: "deanm@chromium.org" Date: Mon, 8 Dec 2008 14:44:44 +0000 Subject: Platform cleanup in common/ Review URL: http://codereview.chromium.org/10988 Patch from Pawel Hajdan Jr. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6506 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/test/testing_browser_process.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'chrome/test/testing_browser_process.h') diff --git a/chrome/test/testing_browser_process.h b/chrome/test/testing_browser_process.h index 3220c05..435d2bf 100644 --- a/chrome/test/testing_browser_process.h +++ b/chrome/test/testing_browser_process.h @@ -10,6 +10,8 @@ #ifndef CHROME_TEST_TESTING_BROWSER_PROCESS_H__ #define CHROME_TEST_TESTING_BROWSER_PROCESS_H__ +#include "build/build_config.h" + #include #include "base/string_util.h" @@ -20,7 +22,9 @@ class TestingBrowserProcess : public BrowserProcess { public: TestingBrowserProcess() { +#if defined(OS_WIN) shutdown_event_ = ::CreateEvent(NULL, TRUE, FALSE, NULL); +#endif } virtual ~TestingBrowserProcess() { } @@ -120,12 +124,16 @@ class TestingBrowserProcess : public BrowserProcess { virtual SuspendController* suspend_controller() { return NULL; } +#if defined(OS_WIN) virtual HANDLE shutdown_event() { return shutdown_event_; } +#endif private: NotificationService notification_service_; +#if defined(OS_WIN) HANDLE shutdown_event_; - DISALLOW_EVIL_CONSTRUCTORS(TestingBrowserProcess); +#endif + DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); }; #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H__ -- cgit v1.1