| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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.h" | 5 #include "chrome/browser/ui/browser_list.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 | 318 |
| 319 #if defined(OS_CHROMEOS) | 319 #if defined(OS_CHROMEOS) |
| 320 NotifyWindowManagerAboutSignout(); | 320 NotifyWindowManagerAboutSignout(); |
| 321 chromeos::CrosLibrary* cros_library = chromeos::CrosLibrary::Get(); | 321 chromeos::CrosLibrary* cros_library = chromeos::CrosLibrary::Get(); |
| 322 if (cros_library->EnsureLoaded()) { | 322 if (cros_library->EnsureLoaded()) { |
| 323 // If update has been installed, reboot, otherwise, sign out. | 323 // If update has been installed, reboot, otherwise, sign out. |
| 324 if (cros_library->GetUpdateLibrary()->status().status == | 324 if (cros_library->GetUpdateLibrary()->status().status == |
| 325 chromeos::UPDATE_STATUS_UPDATED_NEED_REBOOT) { | 325 chromeos::UPDATE_STATUS_UPDATED_NEED_REBOOT) { |
| 326 cros_library->GetUpdateLibrary()->RebootAfterUpdate(); | 326 cros_library->GetUpdateLibrary()->RebootAfterUpdate(); |
| 327 } else { | 327 } else { |
| 328 chromeos::DBusThreadManager::Get()->session_manager_client() | 328 chromeos::DBusThreadManager::Get()->GetSessionManagerClient() |
| 329 ->StopSession(); | 329 ->StopSession(); |
| 330 } | 330 } |
| 331 return; | 331 return; |
| 332 } | 332 } |
| 333 // If running the Chrome OS build, but we're not on the device, fall through | 333 // If running the Chrome OS build, but we're not on the device, fall through |
| 334 #endif | 334 #endif |
| 335 AllBrowsersClosedAndAppExiting(); | 335 AllBrowsersClosedAndAppExiting(); |
| 336 } | 336 } |
| 337 | 337 |
| 338 // static | 338 // static |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 810 // If no more TabContents from Browsers, check the BackgroundPrintingManager. | 810 // If no more TabContents from Browsers, check the BackgroundPrintingManager. |
| 811 while (bg_printing_iterator_ != GetBackgroundPrintingManager()->end()) { | 811 while (bg_printing_iterator_ != GetBackgroundPrintingManager()->end()) { |
| 812 cur_ = *bg_printing_iterator_; | 812 cur_ = *bg_printing_iterator_; |
| 813 CHECK(cur_); | 813 CHECK(cur_); |
| 814 ++bg_printing_iterator_; | 814 ++bg_printing_iterator_; |
| 815 return; | 815 return; |
| 816 } | 816 } |
| 817 // Reached the end - no more TabContents. | 817 // Reached the end - no more TabContents. |
| 818 cur_ = NULL; | 818 cur_ = NULL; |
| 819 } | 819 } |
| OLD | NEW |