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/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/bind.h" | 10 #include "base/bind.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
63 bool g_trying_to_quit = false; | 63 bool g_trying_to_quit = false; |
64 | 64 |
65 // Whether the browser should quit without closing browsers. | 65 // Whether the browser should quit without closing browsers. |
66 bool g_shutting_down_without_closing_browsers = false; | 66 bool g_shutting_down_without_closing_browsers = false; |
67 | 67 |
68 Time* shutdown_started_ = NULL; | 68 Time* shutdown_started_ = NULL; |
69 ShutdownType shutdown_type_ = NOT_VALID; | 69 ShutdownType shutdown_type_ = NOT_VALID; |
70 int shutdown_num_processes_; | 70 int shutdown_num_processes_; |
71 int shutdown_num_processes_slow_; | 71 int shutdown_num_processes_slow_; |
72 | 72 |
73 bool delete_resources_on_shutdown = true; | 73 bool delete_resources_on_shutdown = false; |
tony
2012/06/12 17:45:08
Since this is no longer used, you can probably jus
bshe
2012/06/13 17:04:37
Done.
| |
74 | 74 |
75 const char kShutdownMsFile[] = "chrome_shutdown_ms.txt"; | 75 const char kShutdownMsFile[] = "chrome_shutdown_ms.txt"; |
76 | 76 |
77 void RegisterPrefs(PrefService* local_state) { | 77 void RegisterPrefs(PrefService* local_state) { |
78 local_state->RegisterIntegerPref(prefs::kShutdownType, NOT_VALID); | 78 local_state->RegisterIntegerPref(prefs::kShutdownType, NOT_VALID); |
79 local_state->RegisterIntegerPref(prefs::kShutdownNumProcesses, 0); | 79 local_state->RegisterIntegerPref(prefs::kShutdownNumProcesses, 0); |
80 local_state->RegisterIntegerPref(prefs::kShutdownNumProcessesSlow, 0); | 80 local_state->RegisterIntegerPref(prefs::kShutdownNumProcessesSlow, 0); |
81 } | 81 } |
82 | 82 |
83 ShutdownType GetShutdownType() { | 83 ShutdownType GetShutdownType() { |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
312 | 312 |
313 bool ShuttingDownWithoutClosingBrowsers() { | 313 bool ShuttingDownWithoutClosingBrowsers() { |
314 return g_shutting_down_without_closing_browsers; | 314 return g_shutting_down_without_closing_browsers; |
315 } | 315 } |
316 | 316 |
317 void SetShuttingDownWithoutClosingBrowsers(bool without_close) { | 317 void SetShuttingDownWithoutClosingBrowsers(bool without_close) { |
318 g_shutting_down_without_closing_browsers = without_close; | 318 g_shutting_down_without_closing_browsers = without_close; |
319 } | 319 } |
320 | 320 |
321 } // namespace browser_shutdown | 321 } // namespace browser_shutdown |
OLD | NEW |