native_browser_frame_factory_desktop_ash.cc revision f2477e01787aa58f445919b809d89e252beef54f
1// Copyright 2013 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.
4
5#include "chrome/browser/ui/views/frame/native_browser_frame_factory.h"
6
7#include "chrome/browser/ui/ash/ash_init.h"
8#include "chrome/browser/ui/browser.h"
9#include "chrome/browser/ui/views/frame/browser_view.h"
10
11bool NativeBrowserFrameFactory::ShouldCreateForAshDesktop(
12    BrowserView* browser_view) {
13  return chrome::ShouldOpenAshOnStartup() ||
14      browser_view->browser()->host_desktop_type() ==
15          chrome::HOST_DESKTOP_TYPE_ASH;
16}
17