From aba65c23f61a27d8faef056dafd5016252b33b58 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 9 Jul 2014 17:07:00 +0800 Subject: [PATCH] Give user a chance to override child process and framework path. --- brightray/common/main_delegate.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/brightray/common/main_delegate.h b/brightray/common/main_delegate.h index 0c5107327f7e..1a6b243a4080 100644 --- a/brightray/common/main_delegate.h +++ b/brightray/common/main_delegate.h @@ -38,6 +38,14 @@ class MainDelegate : public content::ContentMainDelegate { // included in the ui::ResourceBundle. virtual void AddPakPaths(std::vector* pak_paths) {} +#if defined(OS_MACOSX) + // Subclasses can override this to custom the paths of child process and + // framework bundle. + virtual base::FilePath GetResourcesPakFilePath(); + virtual void OverrideChildProcessPath(); + virtual void OverrideFrameworkBundlePath(); +#endif + virtual bool BasicStartupComplete(int* exit_code) OVERRIDE; virtual void PreSandboxStartup() OVERRIDE; @@ -45,11 +53,6 @@ class MainDelegate : public content::ContentMainDelegate { virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE; void InitializeResourceBundle(); -#if defined(OS_MACOSX) - static base::FilePath GetResourcesPakFilePath(); - static void OverrideChildProcessPath(); - static void OverrideFrameworkBundlePath(); -#endif scoped_ptr content_client_; scoped_ptr browser_client_;