Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Side by Side Diff: chrome/browser/browser_process_impl.cc

Issue 8879013: Deprecate WEBKIT thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update after rebase Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/browsing_data_database_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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)
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browsing_data_database_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698