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

Side by Side Diff: ios/chrome/app/UIApplication+ExitsOnSuspend.h

Issue 2162893002: Revert of Remove Enable Exits On Suspend flags on iOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « ios/chrome/app/BUILD.gn ('k') | ios/chrome/app/UIApplication+ExitsOnSuspend.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef IOS_CHROME_APP_UIAPPLICATION_EXITSONSUSPEND_H_
6 #define IOS_CHROME_APP_UIAPPLICATION_EXITSONSUSPEND_H_
7
8 #if !defined(NDEBUG)
9
10 #import <UIKit/UIKit.h>
11
12 // Key in the UserDefaults for toggling exit on suspend.
13 extern NSString* const kExitsOnSuspend;
14
15 // WARNING: This is intended for non AppStore builds, since it's not allowed to
16 // quit an app programmatically. Internally we call exit(0).
17 @interface UIApplication (ExitsOnSuspend)
18
19 // When the app goes in background, terminate the app when all background tasks
20 // have finished. Use this in -applicationDidEnterBackground:.
21 - (void)cr_terminateWhenDoneWithBackgroundTasks;
22
23 // Cancel termination. Use this in -applicationWillEnterForeground:.
24 - (void)cr_cancelTermination;
25
26 @end
27
28 #endif // !defined(NDEBUG)
29
30 #endif // IOS_CHROME_APP_UIAPPLICATION_EXITSONSUSPEND_H_
OLDNEW
« no previous file with comments | « ios/chrome/app/BUILD.gn ('k') | ios/chrome/app/UIApplication+ExitsOnSuspend.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698