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

Unified Diff: ios/chrome/browser/application_context_impl.cc

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 | « no previous file | ios/public/provider/chrome/browser/browser_state/chrome_browser_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/application_context_impl.cc
diff --git a/ios/chrome/browser/application_context_impl.cc b/ios/chrome/browser/application_context_impl.cc
index e81f9be94ed6bb12bb392f67e11aad3e84521124..1fc9d9f4e0a1590fe735c8347f4dd52eb3156730 100644
--- a/ios/chrome/browser/application_context_impl.cc
+++ b/ios/chrome/browser/application_context_impl.cc
@@ -85,12 +85,6 @@ void ApplicationContextImpl::OnAppEnterForeground() {
variations::VariationsService* variations_service = GetVariationsService();
if (variations_service)
variations_service->OnAppEnterForeground();
-
- std::vector<ios::ChromeBrowserState*> loaded_browser_state =
- GetChromeBrowserStateManager()->GetLoadedBrowserStates();
- for (ios::ChromeBrowserState* browser_state : loaded_browser_state) {
- browser_state->SetExitType(ios::ChromeBrowserState::EXIT_CRASHED);
- }
}
void ApplicationContextImpl::OnAppEnterBackground() {
@@ -105,7 +99,6 @@ void ApplicationContextImpl::OnAppEnterBackground() {
history_service->HandleBackgrounding();
}
- browser_state->SetExitType(ios::ChromeBrowserState::EXIT_NORMAL);
PrefService* browser_state_prefs = browser_state->GetPrefs();
if (browser_state_prefs)
browser_state_prefs->CommitPendingWrite();
« no previous file with comments | « no previous file | ios/public/provider/chrome/browser/browser_state/chrome_browser_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698