diff options
Diffstat (limited to 'win8')
-rw-r--r-- | win8/metro_driver/chrome_app_view_ash.cc | 4 | ||||
-rw-r--r-- | win8/metro_driver/metro_driver.cc | 9 | ||||
-rw-r--r-- | win8/metro_driver/metro_driver.h | 4 |
3 files changed, 4 insertions, 13 deletions
diff --git a/win8/metro_driver/chrome_app_view_ash.cc b/win8/metro_driver/chrome_app_view_ash.cc index b8f2241..518d1d9 100644 --- a/win8/metro_driver/chrome_app_view_ash.cc +++ b/win8/metro_driver/chrome_app_view_ash.cc @@ -1328,9 +1328,7 @@ HRESULT ChromeAppViewAsh::OnSizeChanged(winui::Core::ICoreWindow* sender, /////////////////////////////////////////////////////////////////////////////// ChromeAppViewFactory::ChromeAppViewFactory( - winapp::Core::ICoreApplication* icore_app, - LPTHREAD_START_ROUTINE host_main, - void* host_context) { + winapp::Core::ICoreApplication* icore_app) { mswr::ComPtr<winapp::Core::ICoreApplication> core_app(icore_app); mswr::ComPtr<winapp::Core::ICoreApplicationExit> app_exit; CheckHR(core_app.As(&app_exit)); diff --git a/win8/metro_driver/metro_driver.cc b/win8/metro_driver/metro_driver.cc index 846a71f..eb87754 100644 --- a/win8/metro_driver/metro_driver.cc +++ b/win8/metro_driver/metro_driver.cc @@ -15,10 +15,6 @@ #include "base/win/scoped_comptr.h" #include "win8/metro_driver/winrt_utils.h" -#if !defined(USE_AURA) -#include "win8/metro_driver/chrome_app_view.h" -#endif - // TODO(siggi): Move this to GYP. #pragma comment(lib, "runtimeobject.lib") @@ -59,7 +55,7 @@ base::AtExitManager at_exit; #endif extern "C" __declspec(dllexport) -int InitMetro(LPTHREAD_START_ROUTINE thread_proc, void* context) { +int InitMetro() { // Initialize the command line. CommandLine::Init(0, NULL); logging::LoggingSettings settings; @@ -97,8 +93,7 @@ int InitMetro(LPTHREAD_START_ROUTINE thread_proc, void* context) { if (FAILED(hr)) return 1; - auto view_factory = mswr::Make<ChromeAppViewFactory>( - core_app.Get(), thread_proc, context); + auto view_factory = mswr::Make<ChromeAppViewFactory>(core_app.Get()); hr = core_app->Run(view_factory.Get()); DVLOG(1) << "exiting InitMetro, hr=" << hr; diff --git a/win8/metro_driver/metro_driver.h b/win8/metro_driver/metro_driver.h index c4ea2ab..2b7d548 100644 --- a/win8/metro_driver/metro_driver.h +++ b/win8/metro_driver/metro_driver.h @@ -10,9 +10,7 @@ class ChromeAppViewFactory : public mswr::RuntimeClass<winapp::Core::IFrameworkViewSource> { public: - ChromeAppViewFactory(winapp::Core::ICoreApplication* icore_app, - LPTHREAD_START_ROUTINE host_main, - void* host_context); + ChromeAppViewFactory(winapp::Core::ICoreApplication* icore_app); IFACEMETHOD(CreateView)(winapp::Core::IFrameworkView** view); }; |