Mac/Linux: Fix compile error.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1140 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2013-03-13 18:13:04 +00:00
parent 72e03b3cd5
commit af4245af33
1 changed files with 14 additions and 9 deletions

View File

@ -9,6 +9,19 @@
#include "base/command_line.h"
#include "base/threading/thread.h"
static void OnRegisterCustomSchemes(
CefRefPtr<CefSchemeRegistrar> registrar) OVERRIDE {
// Bring in the scheme handler tests.
extern void RegisterSchemeHandlerCustomSchemes(
CefRefPtr<CefSchemeRegistrar> registrar);
RegisterSchemeHandlerCustomSchemes(registrar);
// Bring in the cookie tests.
extern void RegisterCookieCustomSchemes(
CefRefPtr<CefSchemeRegistrar> registrar);
RegisterCookieCustomSchemes(registrar);
}
namespace {
// Thread used to run the test suite.
@ -46,15 +59,7 @@ class ClientApp : public CefApp {
virtual void OnRegisterCustomSchemes(
CefRefPtr<CefSchemeRegistrar> registrar) OVERRIDE {
// Bring in the scheme handler tests.
extern void RegisterSchemeHandlerCustomSchemes(
CefRefPtr<CefSchemeRegistrar> registrar);
RegisterSchemeHandlerCustomSchemes(registrar);
// Bring in the cookie tests.
extern void RegisterCookieCustomSchemes(
CefRefPtr<CefSchemeRegistrar> registrar);
RegisterCookieCustomSchemes(registrar);
::OnRegisterCustomSchemes(registrar);
}
protected: