Index: chrome/browser/ui/views/frame/native_browser_frame_factory_ozone.cc |
diff --git a/chrome/browser/ui/views/frame/native_browser_frame_factory_ozone.cc b/chrome/browser/ui/views/frame/native_browser_frame_factory_ozone.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..09124dc6ed95a9dad0c9b47569d4549f5987b7a6 |
--- /dev/null |
+++ b/chrome/browser/ui/views/frame/native_browser_frame_factory_ozone.cc |
@@ -0,0 +1,18 @@ |
+// Copyright 2016 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 "chrome/browser/ui/views/frame/native_browser_frame_factory.h" |
+ |
+#include "chrome/browser/ui/views/frame/browser_frame_mus.h" |
+#include "services/service_manager/runner/common/client_util.h" |
+ |
+NativeBrowserFrame* NativeBrowserFrameFactory::Create( |
+ BrowserFrame* browser_frame, |
+ BrowserView* browser_view) { |
+ if (service_manager::ServiceManagerIsRemote()) |
+ return new BrowserFrameMus(browser_frame, browser_view); |
+ |
+ NOTREACHED() << "For Ozone builds, only --mash launch is supported for now."; |
+ return nullptr; |
+} |