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

Side by Side Diff: chrome/browser/lifetime/application_lifetime.h

Issue 2493973003: Display "Restart to update" dialog to Chrome OS users. (Closed)
Patch Set: Display "Restart to update" dialog to Chrome OS users. Created 4 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
OLDNEW
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 #ifndef CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_ 5 #ifndef CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_
6 #define CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_ 6 #define CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void SessionEnding(); 69 void SessionEnding();
70 70
71 #endif // !defined(OS_ANDROID) 71 #endif // !defined(OS_ANDROID)
72 72
73 // Emits APP_TERMINATING notification. It is guaranteed that the 73 // Emits APP_TERMINATING notification. It is guaranteed that the
74 // notification is sent only once. 74 // notification is sent only once.
75 void NotifyAppTerminating(); 75 void NotifyAppTerminating();
76 76
77 // Send out notifications. 77 // Send out notifications.
78 // For ChromeOS, also request session manager to end the session. 78 // For ChromeOS, also request session manager to end the session.
79 void NotifyAndTerminate(bool fast_path); 79 void NotifyAndTerminate(bool fast_path, bool always_reboot);
James Cook 2016/11/30 23:01:41 nit: document why you might pass true for always_r
Greg K 2016/12/01 19:44:43 Done.
80 80
81 #if !defined(OS_ANDROID) 81 #if !defined(OS_ANDROID)
82 // Called once the application is exiting. 82 // Called once the application is exiting.
83 void OnAppExiting(); 83 void OnAppExiting();
84 84
85 // Called once the application is exiting to do any platform specific 85 // Called once the application is exiting to do any platform specific
86 // processing required. 86 // processing required.
87 void HandleAppExitingForPlatform(); 87 void HandleAppExitingForPlatform();
88 #endif // !defined(OS_ANDROID) 88 #endif // !defined(OS_ANDROID)
89 89
90 } // namespace chrome 90 } // namespace chrome
91 91
92 #endif // CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_ 92 #endif // CHROME_BROWSER_LIFETIME_APPLICATION_LIFETIME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698