| 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/chrome_browser_main_posix.h" | 5 #include "chrome/browser/chrome_browser_main_posix.h" |
| 6 | 6 |
| 7 #include <errno.h> | 7 #include <errno.h> |
| 8 #include <limits.h> | 8 #include <limits.h> |
| 9 #include <pthread.h> | 9 #include <pthread.h> |
| 10 #include <signal.h> | 10 #include <signal.h> |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 browser::ExitCleanly(); | 148 browser::ExitCleanly(); |
| 149 #else | 149 #else |
| 150 browser::AttemptExit(); | 150 browser::AttemptExit(); |
| 151 #endif | 151 #endif |
| 152 } | 152 } |
| 153 | 153 |
| 154 class ShutdownDetector : public base::PlatformThread::Delegate { | 154 class ShutdownDetector : public base::PlatformThread::Delegate { |
| 155 public: | 155 public: |
| 156 explicit ShutdownDetector(int shutdown_fd); | 156 explicit ShutdownDetector(int shutdown_fd); |
| 157 | 157 |
| 158 virtual void ThreadMain(); | 158 virtual void ThreadMain() OVERRIDE; |
| 159 | 159 |
| 160 private: | 160 private: |
| 161 const int shutdown_fd_; | 161 const int shutdown_fd_; |
| 162 | 162 |
| 163 DISALLOW_COPY_AND_ASSIGN(ShutdownDetector); | 163 DISALLOW_COPY_AND_ASSIGN(ShutdownDetector); |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 ShutdownDetector::ShutdownDetector(int shutdown_fd) | 166 ShutdownDetector::ShutdownDetector(int shutdown_fd) |
| 167 : shutdown_fd_(shutdown_fd) { | 167 : shutdown_fd_(shutdown_fd) { |
| 168 CHECK_NE(shutdown_fd_, -1); | 168 CHECK_NE(shutdown_fd_, -1); |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 ChromeBrowserMainExtraPartsGtk::ShowMessageBox( | 355 ChromeBrowserMainExtraPartsGtk::ShowMessageBox( |
| 356 chrome_browser::kMissingLocaleDataMessage); | 356 chrome_browser::kMissingLocaleDataMessage); |
| 357 #elif defined(USE_AURA) | 357 #elif defined(USE_AURA) |
| 358 // TODO(port): We may want a views based message dialog here eventually, but | 358 // TODO(port): We may want a views based message dialog here eventually, but |
| 359 // for now, crash. | 359 // for now, crash. |
| 360 NOTREACHED(); | 360 NOTREACHED(); |
| 361 #else | 361 #else |
| 362 #error "Need MessageBox implementation." | 362 #error "Need MessageBox implementation." |
| 363 #endif | 363 #endif |
| 364 } | 364 } |
| OLD | NEW |