summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/browser_window_factory.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/cocoa/browser_window_factory.mm')
-rw-r--r--chrome/browser/cocoa/browser_window_factory.mm32
1 files changed, 0 insertions, 32 deletions
diff --git a/chrome/browser/cocoa/browser_window_factory.mm b/chrome/browser/cocoa/browser_window_factory.mm
deleted file mode 100644
index 41d2de4..0000000
--- a/chrome/browser/cocoa/browser_window_factory.mm
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (c) 2010 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 "base/basictypes.h"
-#include "chrome/browser/cocoa/browser_window_cocoa.h"
-#include "chrome/browser/cocoa/browser_window_controller.h"
-#include "chrome/browser/cocoa/find_bar_bridge.h"
-#include "chrome/browser/ui/browser.h"
-#include "chrome/browser/ui/browser_window.h"
-
-// Create the controller for the Browser, which handles loading the browser
-// window from the nib. The controller takes ownership of |browser|.
-// static
-BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) {
- BrowserWindowController* controller =
- [[BrowserWindowController alloc] initWithBrowser:browser];
- return [controller browserWindow];
-}
-
-// static
-FindBar* BrowserWindow::CreateFindBar(Browser* browser) {
- // We could push the AddFindBar() call into the FindBarBridge
- // constructor or the FindBarCocoaController init, but that makes
- // unit testing difficult, since we would also require a
- // BrowserWindow object.
- BrowserWindowCocoa* window =
- static_cast<BrowserWindowCocoa*>(browser->window());
- FindBarBridge* bridge = new FindBarBridge();
- window->AddFindBar(bridge->find_bar_cocoa_controller());
- return bridge;
-}