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/browser_shutdown.h" | 5 #include "chrome/browser/browser_shutdown.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 #include "chrome/browser/rlz/rlz.h" | 46 #include "chrome/browser/rlz/rlz.h" |
47 #endif | 47 #endif |
48 | 48 |
49 #if defined(OS_CHROMEOS) | 49 #if defined(OS_CHROMEOS) |
50 #include "chrome/browser/chromeos/boot_times_loader.h" | 50 #include "chrome/browser/chromeos/boot_times_loader.h" |
51 #include "chrome/browser/chromeos/cros/cros_library.h" | 51 #include "chrome/browser/chromeos/cros/cros_library.h" |
52 #endif | 52 #endif |
53 | 53 |
54 using base::Time; | 54 using base::Time; |
55 using base::TimeDelta; | 55 using base::TimeDelta; |
| 56 using content::BrowserThread; |
56 | 57 |
57 namespace browser_shutdown { | 58 namespace browser_shutdown { |
58 | 59 |
59 // Whether the browser is trying to quit (e.g., Quit chosen from menu). | 60 // Whether the browser is trying to quit (e.g., Quit chosen from menu). |
60 bool g_trying_to_quit = false; | 61 bool g_trying_to_quit = false; |
61 | 62 |
62 // Whether the browser should quit without closing browsers. | 63 // Whether the browser should quit without closing browsers. |
63 bool g_shutting_down_without_closing_browsers = false; | 64 bool g_shutting_down_without_closing_browsers = false; |
64 | 65 |
65 Time shutdown_started_; | 66 Time shutdown_started_; |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 | 314 |
314 bool ShuttingDownWithoutClosingBrowsers() { | 315 bool ShuttingDownWithoutClosingBrowsers() { |
315 return g_shutting_down_without_closing_browsers; | 316 return g_shutting_down_without_closing_browsers; |
316 } | 317 } |
317 | 318 |
318 void SetShuttingDownWithoutClosingBrowsers(bool without_close) { | 319 void SetShuttingDownWithoutClosingBrowsers(bool without_close) { |
319 g_shutting_down_without_closing_browsers = without_close; | 320 g_shutting_down_without_closing_browsers = without_close; |
320 } | 321 } |
321 | 322 |
322 } // namespace browser_shutdown | 323 } // namespace browser_shutdown |
OLD | NEW |