| Index: chrome/browser/extensions/app_restore_service.cc
|
| diff --git a/chrome/browser/extensions/app_restore_service.cc b/chrome/browser/extensions/app_restore_service.cc
|
| index 6a91cc188f9aabfbb97f18a1240effc48a0edf8c..2c7307f3049c4dd1dc9d1948d4862f4064d9a4eb 100644
|
| --- a/chrome/browser/extensions/app_restore_service.cc
|
| +++ b/chrome/browser/extensions/app_restore_service.cc
|
| @@ -58,17 +58,16 @@ void AppRestoreService::Observe(int type,
|
| case chrome::NOTIFICATION_EXTENSION_HOST_DID_STOP_LOADING: {
|
| ExtensionHost* host = content::Details<ExtensionHost>(details).ptr();
|
| const Extension* extension = host->extension();
|
| - if (extension && extension->is_platform_app()) {
|
| + if (extension && extension->is_platform_app())
|
| RecordAppStart(extension->id());
|
| - }
|
| break;
|
| }
|
|
|
| case chrome::NOTIFICATION_EXTENSION_HOST_DESTROYED: {
|
| ExtensionHost* host = content::Details<ExtensionHost>(details).ptr();
|
| - if (host->extension()->is_platform_app()) {
|
| - RecordAppStop(host->extension()->id());
|
| - }
|
| + const Extension* extension = host->extension();
|
| + if (extension && extension->is_platform_app())
|
| + RecordAppStop(extension->id());
|
| break;
|
| }
|
|
|
|
|