| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/browser_list_impl.h" | 5 #include "chrome/browser/ui/browser_list_impl.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/browser_shutdown.h" | 10 #include "chrome/browser/browser_shutdown.h" |
| 11 #include "chrome/browser/lifetime/application_lifetime.h" | 11 #include "chrome/browser/lifetime/application_lifetime.h" |
| 12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 13 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
| 14 #include "chrome/browser/ui/browser_list_observer.h" | 14 #include "chrome/browser/ui/browser_list_observer.h" |
| 15 #include "chrome/browser/ui/browser_window.h" | 15 #include "chrome/browser/ui/browser_window.h" |
| 16 #include "chrome/common/chrome_notification_types.h" | 16 #include "chrome/common/chrome_notification_types.h" |
| 17 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
| 18 #include "content/public/browser/notification_service.h" | 18 #include "content/public/browser/notification_service.h" |
| 19 | 19 |
| 20 // #include "build/build_config.h" | 20 // #include "build/build_config.h" |
| 21 // #include "chrome/browser/prefs/pref_service.h" | 21 // #include "base/prefs/pref_service.h" |
| 22 | 22 |
| 23 | 23 |
| 24 #if defined(OS_CHROMEOS) | 24 #if defined(OS_CHROMEOS) |
| 25 #include "chrome/browser/chromeos/login/user_manager.h" | 25 #include "chrome/browser/chromeos/login/user_manager.h" |
| 26 #endif | 26 #endif |
| 27 | 27 |
| 28 namespace chrome { | 28 namespace chrome { |
| 29 | 29 |
| 30 // static | 30 // static |
| 31 BrowserListImpl* BrowserListImpl::native_instance_ = NULL; | 31 BrowserListImpl* BrowserListImpl::native_instance_ = NULL; |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 | 169 |
| 170 void BrowserListImpl::RemoveBrowserFrom(Browser* browser, | 170 void BrowserListImpl::RemoveBrowserFrom(Browser* browser, |
| 171 BrowserVector* browser_list) { | 171 BrowserVector* browser_list) { |
| 172 const iterator remove_browser = | 172 const iterator remove_browser = |
| 173 std::find(browser_list->begin(), browser_list->end(), browser); | 173 std::find(browser_list->begin(), browser_list->end(), browser); |
| 174 if (remove_browser != browser_list->end()) | 174 if (remove_browser != browser_list->end()) |
| 175 browser_list->erase(remove_browser); | 175 browser_list->erase(remove_browser); |
| 176 } | 176 } |
| 177 | 177 |
| 178 } // namespace chrome | 178 } // namespace chrome |
| OLD | NEW |