| Index: chrome/browser/ui/browser_init.cc
|
| diff --git a/chrome/browser/ui/browser_init.cc b/chrome/browser/ui/browser_init.cc
|
| index 30cc3afed695997ffa3b82a5cc9b6be6c4d72e95..2d3047c988d52f26922352936301b7f7b121c2d8 100644
|
| --- a/chrome/browser/ui/browser_init.cc
|
| +++ b/chrome/browser/ui/browser_init.cc
|
| @@ -457,7 +457,11 @@ void RecordAppLaunches(
|
| Profile* profile,
|
| const std::vector<GURL>& cmd_line_urls,
|
| const std::vector<BrowserInit::LaunchWithProfile::Tab>& autolaunch_tabs) {
|
| + // 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* extension_service = profile->GetExtensionService();
|
| + if (!extension_service)
|
| + return;
|
|
|
| for (size_t i = 0; i < cmd_line_urls.size(); ++i) {
|
| if (extension_service->IsInstalledApp(cmd_line_urls.at(i))) {
|
|
|