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

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

Issue 6975045: touch: Always expect XInput2 availability. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 5 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
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/chromeos/frame/panel_controller.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_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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 base::ThreadRestrictions::SetIOAllowed(true); 125 base::ThreadRestrictions::SetIOAllowed(true);
126 126
127 // Shutdown the IPC channel to the service processes. 127 // Shutdown the IPC channel to the service processes.
128 ServiceProcessControl::GetInstance()->Disconnect(); 128 ServiceProcessControl::GetInstance()->Disconnect();
129 129
130 #if defined(OS_CHROMEOS) 130 #if defined(OS_CHROMEOS)
131 // The system key event listener needs to be shut down earlier than when 131 // The system key event listener needs to be shut down earlier than when
132 // Singletons are finally destroyed in AtExitManager. 132 // Singletons are finally destroyed in AtExitManager.
133 chromeos::SystemKeyEventListener::GetInstance()->Stop(); 133 chromeos::SystemKeyEventListener::GetInstance()->Stop();
134 134
135 // TODO(yusukes): Remove the #if once the ARM bot (crbug.com/84694) is fixed.
136 #if defined(HAVE_XINPUT2)
137 // The XInput2 event listener needs to be shut down earlier than when 135 // The XInput2 event listener needs to be shut down earlier than when
138 // Singletons are finally destroyed in AtExitManager. 136 // Singletons are finally destroyed in AtExitManager.
139 chromeos::XInputHierarchyChangedEventListener::GetInstance()->Stop(); 137 chromeos::XInputHierarchyChangedEventListener::GetInstance()->Stop();
140 #endif 138 #endif
141 #endif
142 139
143 // WARNING: During logoff/shutdown (WM_ENDSESSION) we may not have enough 140 // WARNING: During logoff/shutdown (WM_ENDSESSION) we may not have enough
144 // time to get here. If you have something that *must* happen on end session, 141 // time to get here. If you have something that *must* happen on end session,
145 // consider putting it in BrowserProcessImpl::EndSession. 142 // consider putting it in BrowserProcessImpl::EndSession.
146 PrefService* prefs = g_browser_process->local_state(); 143 PrefService* prefs = g_browser_process->local_state();
147 ProfileManager* profile_manager = g_browser_process->profile_manager(); 144 ProfileManager* profile_manager = g_browser_process->profile_manager();
148 PrefService* user_prefs = profile_manager->GetDefaultProfile()->GetPrefs(); 145 PrefService* user_prefs = profile_manager->GetDefaultProfile()->GetPrefs();
149 146
150 chrome_browser_net::SavePredictorStateForNextStartupAndTrim(user_prefs); 147 chrome_browser_net::SavePredictorStateForNextStartupAndTrim(user_prefs);
151 148
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 326
330 bool ShuttingDownWithoutClosingBrowsers() { 327 bool ShuttingDownWithoutClosingBrowsers() {
331 #if defined(USE_X11) 328 #if defined(USE_X11)
332 if (GetShutdownType() == browser_shutdown::END_SESSION) 329 if (GetShutdownType() == browser_shutdown::END_SESSION)
333 return true; 330 return true;
334 #endif 331 #endif
335 return false; 332 return false;
336 } 333 }
337 334
338 } // namespace browser_shutdown 335 } // namespace browser_shutdown
OLDNEW
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/chromeos/frame/panel_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698