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

Unified Diff: ios/public/provider/chrome/browser/browser_state/chrome_browser_state.h

Issue 1471743002: [iOS] Remove ChromeBrowserState::ExitType (dead code) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/browser/application_context_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/public/provider/chrome/browser/browser_state/chrome_browser_state.h
diff --git a/ios/public/provider/chrome/browser/browser_state/chrome_browser_state.h b/ios/public/provider/chrome/browser/browser_state/chrome_browser_state.h
index db0772fbc57d21cdedd8ad0eafc542d3c4d795dc..5a8b084ae61fd39647b590f9f22a646dd096afc9 100644
--- a/ios/public/provider/chrome/browser/browser_state/chrome_browser_state.h
+++ b/ios/public/provider/chrome/browser/browser_state/chrome_browser_state.h
@@ -31,11 +31,6 @@ namespace ios {
// This class is a Chrome-specific extension of the BrowserState interface.
class ChromeBrowserState : public web::BrowserState {
public:
- enum ExitType {
- EXIT_NORMAL,
- EXIT_CRASHED,
- };
-
~ChromeBrowserState() override {}
// Returns the ChromeBrowserState corresponding to the given BrowserState.
@@ -75,18 +70,6 @@ class ChromeBrowserState : public web::BrowserState {
// a syncable_prefs::PrefServiceSyncable.
virtual syncable_prefs::PrefServiceSyncable* GetSyncablePrefs() = 0;
- // Sets the ExitType for the ChromeBrowserState. This may be invoked multiple
- // times during shutdown; only the first such change (the transition from
- // EXIT_CRASHED to one of the other values) is written to prefs, any later
- // calls are ignored.
- //
- // NOTE: this is invoked internally on a normal shutdown, but is public so
- // that it can be invoked to handle backgrounding/foregrounding.
- virtual void SetExitType(ExitType exit_type) = 0;
-
- // Returns how the last session was shutdown.
- virtual ExitType GetLastSessionExitType() = 0;
-
// Deletes all network related data since |time|. It deletes transport
// security state since |time| and it also deletes HttpServerProperties data.
// Works asynchronously, however if the |completion| callback is non-null, it
« no previous file with comments | « ios/chrome/browser/application_context_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698