Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / ui / views / frame / native_browser_frame_factory_aurawin.cc
blob8b20e3a304f1a1bff31773926189041c0d91844a
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.
5 #include "chrome/browser/ui/views/frame/native_browser_frame_factory.h"
7 #include "ash/shell.h"
8 #include "chrome/browser/ui/views/frame/browser_frame_ashwin.h"
9 #include "chrome/browser/ui/views/frame/desktop_browser_frame_aura.h"
11 NativeBrowserFrame* NativeBrowserFrameFactory::Create(
12 BrowserFrame* browser_frame,
13 BrowserView* browser_view) {
14 if (ShouldCreateForAshDesktop(browser_view))
15 return new BrowserFrameAshWin(browser_frame, browser_view);
17 return new DesktopBrowserFrameAura(browser_frame, browser_view);
20 // static
21 chrome::HostDesktopType NativeBrowserFrameFactory::AdjustHostDesktopType(
22 chrome::HostDesktopType desktop_type) {
23 if (ash::Shell::HasInstance())
24 return chrome::HOST_DESKTOP_TYPE_ASH;
26 return desktop_type;