blob: c666df7c75aff62271df9f5d7c9f55fbe21dfd04 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ios/web/shell/shell_web_main_parts.h"
#include "base/path_service.h"
#include "ios/web/shell/shell_browser_state.h"
#include "ui/base/resource/resource_bundle.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
namespace web {
ShellWebMainParts::ShellWebMainParts() {
}
ShellWebMainParts::~ShellWebMainParts() {
}
void ShellWebMainParts::PreMainMessageLoopStart() {
base::FilePath pak_path;
PathService::Get(base::DIR_MODULE, &pak_path);
ui::ResourceBundle::InitSharedInstanceWithPakPath(
pak_path.AppendASCII("web_shell_resources.pak"));
}
void ShellWebMainParts::PreMainMessageLoopRun() {
browser_state_.reset(new ShellBrowserState);
}
} // namespace web