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

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

Issue 6576020: Remove Gears from Chrome (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: windows fixes Created 9 years, 9 months 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
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_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 12 matching lines...) Expand all
23 #include "chrome/browser/browser_process.h" 23 #include "chrome/browser/browser_process.h"
24 #include "chrome/browser/first_run/first_run.h" 24 #include "chrome/browser/first_run/first_run.h"
25 #include "chrome/browser/jankometer.h" 25 #include "chrome/browser/jankometer.h"
26 #include "chrome/browser/metrics/metrics_service.h" 26 #include "chrome/browser/metrics/metrics_service.h"
27 #include "chrome/browser/prefs/pref_service.h" 27 #include "chrome/browser/prefs/pref_service.h"
28 #include "chrome/browser/profiles/profile_manager.h" 28 #include "chrome/browser/profiles/profile_manager.h"
29 #include "chrome/browser/service/service_process_control_manager.h" 29 #include "chrome/browser/service/service_process_control_manager.h"
30 #include "chrome/browser/ui/browser_list.h" 30 #include "chrome/browser/ui/browser_list.h"
31 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" 31 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
32 #include "chrome/common/chrome_paths.h" 32 #include "chrome/common/chrome_paths.h"
33 #include "chrome/common/chrome_plugin_lib.h"
34 #include "chrome/common/chrome_switches.h" 33 #include "chrome/common/chrome_switches.h"
35 #include "chrome/common/pref_names.h" 34 #include "chrome/common/pref_names.h"
36 #include "chrome/common/switch_utils.h" 35 #include "chrome/common/switch_utils.h"
37 #include "content/browser/browser_thread.h" 36 #include "content/browser/browser_thread.h"
38 #include "content/browser/plugin_process_host.h" 37 #include "content/browser/plugin_process_host.h"
39 #include "content/browser/renderer_host/render_process_host.h" 38 #include "content/browser/renderer_host/render_process_host.h"
40 #include "content/browser/renderer_host/render_view_host.h" 39 #include "content/browser/renderer_host/render_view_host.h"
41 #include "content/browser/renderer_host/render_widget_host.h" 40 #include "content/browser/renderer_host/render_widget_host.h"
42 #include "net/predictor_api.h" 41 #include "net/predictor_api.h"
43 #include "ui/base/resource/resource_bundle.h" 42 #include "ui/base/resource/resource_bundle.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 #if defined(OS_CHROMEOS) 113 #if defined(OS_CHROMEOS)
115 chromeos::BootTimesLoader::Get()->AddLogoutTimeMarker( 114 chromeos::BootTimesLoader::Get()->AddLogoutTimeMarker(
116 "BrowserShutdownStarted", false); 115 "BrowserShutdownStarted", false);
117 #endif 116 #endif
118 // During shutdown we will end up some blocking operations. But the 117 // During shutdown we will end up some blocking operations. But the
119 // work needs to get done and we're going to wait for them no matter 118 // work needs to get done and we're going to wait for them no matter
120 // what thread they're on, so don't worry about it slowing down 119 // what thread they're on, so don't worry about it slowing down
121 // shutdown. 120 // shutdown.
122 base::ThreadRestrictions::SetIOAllowed(true); 121 base::ThreadRestrictions::SetIOAllowed(true);
123 122
124 // Unload plugins. This needs to happen on the IO thread.
125 BrowserThread::PostTask(
126 BrowserThread::IO, FROM_HERE,
127 NewRunnableFunction(&ChromePluginLib::UnloadAllPlugins));
128
129 // Shutdown all IPC channels to service processes. 123 // Shutdown all IPC channels to service processes.
130 ServiceProcessControlManager::GetInstance()->Shutdown(); 124 ServiceProcessControlManager::GetInstance()->Shutdown();
131 125
132 #if defined(OS_CHROMEOS) 126 #if defined(OS_CHROMEOS)
133 // The system key event listener needs to be shut down earlier than when 127 // The system key event listener needs to be shut down earlier than when
134 // Singletons are finally destroyed in AtExitManager. 128 // Singletons are finally destroyed in AtExitManager.
135 chromeos::SystemKeyEventListener::GetInstance()->Stop(); 129 chromeos::SystemKeyEventListener::GetInstance()->Stop();
136 #endif 130 #endif
137 131
138 // WARNING: During logoff/shutdown (WM_ENDSESSION) we may not have enough 132 // WARNING: During logoff/shutdown (WM_ENDSESSION) we may not have enough
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 331
338 bool ShuttingDownWithoutClosingBrowsers() { 332 bool ShuttingDownWithoutClosingBrowsers() {
339 #if defined(USE_X11) 333 #if defined(USE_X11)
340 if (GetShutdownType() == browser_shutdown::END_SESSION) 334 if (GetShutdownType() == browser_shutdown::END_SESSION)
341 return true; 335 return true;
342 #endif 336 #endif
343 return false; 337 return false;
344 } 338 }
345 339
346 } // namespace browser_shutdown 340 } // namespace browser_shutdown
OLDNEW
« no previous file with comments | « chrome/browser/automation/url_request_automation_job.cc ('k') | chrome/browser/chrome_plugin_browsing_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698