1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/views_content_client/views_content_client.h"
7 #include "content/public/app/content_main.h"
8 #include "ui/views_content_client/views_content_main_delegate.h"
13 ViewsContentClient::ViewsContentClient(
14 HINSTANCE instance
, sandbox::SandboxInterfaceInfo
* sandbox_info
)
15 : instance_(instance
), sandbox_info_(sandbox_info
) {
18 ViewsContentClient::ViewsContentClient(int argc
, const char** argv
)
19 : argc_(argc
), argv_(argv
) {
23 ViewsContentClient::~ViewsContentClient() {
26 int ViewsContentClient::RunMain() {
27 ViewsContentMainDelegate
delegate(this);
28 content::ContentMainParams
params(&delegate
);
31 params
.instance
= instance_
;
32 params
.sandbox_info
= sandbox_info_
;
38 return content::ContentMain(params
);