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_process_impl.h" | 5 #include "chrome/browser/browser_process_impl.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 break; | 264 break; |
265 #endif | 265 #endif |
266 case BrowserThread::FILE: | 266 case BrowserThread::FILE: |
267 // Clean up state that lives on or uses the file_thread_ before | 267 // Clean up state that lives on or uses the file_thread_ before |
268 // it goes away. | 268 // it goes away. |
269 if (resource_dispatcher_host_.get()) { | 269 if (resource_dispatcher_host_.get()) { |
270 resource_dispatcher_host()->download_file_manager()->Shutdown(); | 270 resource_dispatcher_host()->download_file_manager()->Shutdown(); |
271 resource_dispatcher_host()->save_file_manager()->Shutdown(); | 271 resource_dispatcher_host()->save_file_manager()->Shutdown(); |
272 } | 272 } |
273 break; | 273 break; |
274 case BrowserThread::WEBKIT: | 274 case BrowserThread::WEBKIT_DEPRECATED: |
275 // Need to destroy ResourceDispatcherHost before PluginService | 275 // Need to destroy ResourceDispatcherHost before PluginService |
276 // and SafeBrowsingService, since it caches a pointer to | 276 // and SafeBrowsingService, since it caches a pointer to |
277 // it. | 277 // it. |
278 resource_dispatcher_host_.reset(); | 278 resource_dispatcher_host_.reset(); |
279 break; | 279 break; |
280 default: | 280 default: |
281 break; | 281 break; |
282 } | 282 } |
283 } | 283 } |
284 | 284 |
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
989 } | 989 } |
990 | 990 |
991 void BrowserProcessImpl::OnAutoupdateTimer() { | 991 void BrowserProcessImpl::OnAutoupdateTimer() { |
992 if (CanAutorestartForUpdate()) { | 992 if (CanAutorestartForUpdate()) { |
993 DLOG(WARNING) << "Detected update. Restarting browser."; | 993 DLOG(WARNING) << "Detected update. Restarting browser."; |
994 RestartBackgroundInstance(); | 994 RestartBackgroundInstance(); |
995 } | 995 } |
996 } | 996 } |
997 | 997 |
998 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 998 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
OLD | NEW |