| Index: chrome/browser/lifetime/application_lifetime.cc
|
| diff --git a/chrome/browser/lifetime/application_lifetime.cc b/chrome/browser/lifetime/application_lifetime.cc
|
| index 19fd12723278ea432ba7d93ae3c4f86534fdb26f..82e655634af04606780a1288771f34dd54d814d7 100644
|
| --- a/chrome/browser/lifetime/application_lifetime.cc
|
| +++ b/chrome/browser/lifetime/application_lifetime.cc
|
| @@ -392,6 +392,15 @@ void OnAppExiting() {
|
| notified = true;
|
| HandleAppExitingForPlatform();
|
| }
|
| +
|
| +void ResetRestartPrefs() {
|
| + PrefService* pref_service = g_browser_process->local_state();
|
| + if (!pref_service)
|
| + return;
|
| +
|
| + pref_service->ClearPref(prefs::kWasRestarted);
|
| + pref_service->ClearPref(prefs::kRestartLastSessionOnShutdown);
|
| +}
|
| #endif // !defined(OS_ANDROID)
|
|
|
| } // namespace chrome
|
|
|