Restart apps that don't listen to onRestarted() by sending them onLaunched().

We only do this if the app had windows opened the last time it was running,
otherwise apps that were running but had no windows may restart by opening
windows, which manifests as apps coming back on a restart after the user
already closed them.

BUG=230667,167740,162057

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=199406
Reverted: https://src.chromium.org/viewvc/chrome?view=rev&revision=199409

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=199970
Reverted: https://src.chromium.org/viewvc/chrome?view=rev&revision=200016

Review URL: https://chromiumcodereview.appspot.com/14878008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200779 0039d316-1c4b-4281-b951-d872f2087c98
9 files changed