summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_list.cc
diff options
context:
space:
mode:
authorpinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-21 16:41:33 +0000
committerpinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-21 16:41:33 +0000
commit8a53ee044de003495430e48203c8606dbf9aa261 (patch)
treed6171016214fa15a4b586b008a5b75f0e0777a96 /chrome/browser/browser_list.cc
parent9c19aa146af6d80de43f00fd109a43bb8f018b24 (diff)
downloadchromium_src-8a53ee044de003495430e48203c8606dbf9aa261.zip
chromium_src-8a53ee044de003495430e48203c8606dbf9aa261.tar.gz
chromium_src-8a53ee044de003495430e48203c8606dbf9aa261.tar.bz2
Get browser window showing using a Browser object and accompanying scaffolding. Adds browser window controller and shim from NSWindow to BrowserWindow.
Review URL: http://codereview.chromium.org/18368 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8364 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_list.cc')
-rw-r--r--chrome/browser/browser_list.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/browser_list.cc b/chrome/browser/browser_list.cc
index 90ccb56..739dadb 100644
--- a/chrome/browser/browser_list.cc
+++ b/chrome/browser/browser_list.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "build/build_config.h"
+
#include "chrome/browser/browser_list.h"
#include "base/logging.h"
@@ -10,10 +12,14 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/browser_shutdown.h"
#include "chrome/browser/browser_window.h"
+#if defined(OS_WIN)
+// TODO(port): these can probably all go away, even on win
#include "chrome/browser/profile.h"
#include "chrome/browser/profile_manager.h"
#include "chrome/browser/tab_contents/web_contents.h"
#include "chrome/common/notification_service.h"
+#endif
+
BrowserList::list_type BrowserList::browsers_;
std::vector<BrowserList::Observer*> BrowserList::observers_;
@@ -143,9 +149,13 @@ void BrowserList::WindowsSessionEnding() {
// And shutdown.
browser_shutdown::Shutdown();
+#if defined(OS_WIN)
// At this point the message loop is still running yet we've shut everything
// down. If any messages are processed we'll likely crash. Exit now.
ExitProcess(ResultCodes::NORMAL_EXIT);
+#else
+ NOTIMPLEMENTED();
+#endif
}
// static