| Index: chrome/browser/sessions/tab_restore_service.cc
|
| diff --git a/chrome/browser/sessions/tab_restore_service.cc b/chrome/browser/sessions/tab_restore_service.cc
|
| index 7d32607e810fe2c8686f475cb8aa06139b59bb5c..6f1b76b1d8506e9812fe29f84660eecaf5455a56 100644
|
| --- a/chrome/browser/sessions/tab_restore_service.cc
|
| +++ b/chrome/browser/sessions/tab_restore_service.cc
|
| @@ -155,10 +155,8 @@ void RemoveEntryByID(SessionID::id_type id,
|
| void RecordAppLaunch(Browser* browser, const TabRestoreService::Tab& tab) {
|
| GURL url = tab.navigations.at(tab.current_navigation_index).virtual_url();
|
| Profile* profile = browser->profile();
|
| - // TODO: the ExtensionService should never be NULL, but in some cases it is,
|
| - // see bug 73768. After it is resolved, the explicit test can go away.
|
| - ExtensionService* service = profile->GetExtensionService();
|
| - if (!service || !service->IsInstalledApp(url))
|
| + DCHECK(profile->GetExtensionService());
|
| + if (!profile->GetExtensionService()->IsInstalledApp(url))
|
| return;
|
|
|
| UMA_HISTOGRAM_ENUMERATION(extension_misc::kAppLaunchHistogram,
|
|
|