Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / ui / views_content_client / views_content_client_main_parts_aura.cc
blob5e1c69a295bb27710548d40df77ead1b2dd87da7
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_main_parts_aura.h"
7 #include "ui/aura/env.h"
8 #include "ui/wm/core/wm_state.h"
10 namespace ui {
12 ViewsContentClientMainPartsAura::ViewsContentClientMainPartsAura(
13 const content::MainFunctionParams& content_params,
14 ViewsContentClient* views_content_client)
15 : ViewsContentClientMainParts(content_params, views_content_client) {
18 ViewsContentClientMainPartsAura::~ViewsContentClientMainPartsAura() {
21 void ViewsContentClientMainPartsAura::ToolkitInitialized() {
22 ViewsContentClientMainParts::ToolkitInitialized();
24 wm_state_.reset(new ::wm::WMState);
27 void ViewsContentClientMainPartsAura::PostMainMessageLoopRun() {
28 aura::Env::DeleteInstance();
30 ViewsContentClientMainParts::PostMainMessageLoopRun();
33 } // namespace ui