| Index: chrome/browser/ui/gtk/bookmark_bar_gtk.cc
|
| diff --git a/chrome/browser/ui/gtk/bookmark_bar_gtk.cc b/chrome/browser/ui/gtk/bookmark_bar_gtk.cc
|
| index c9c1d07f6dc375c968fcbd51ca980090f330f467..18586f3ace86fde4e218e1d80e68fe91931ec118 100644
|
| --- a/chrome/browser/ui/gtk/bookmark_bar_gtk.cc
|
| +++ b/chrome/browser/ui/gtk/bookmark_bar_gtk.cc
|
| @@ -109,7 +109,10 @@ void SetToolBarStyle() {
|
| }
|
|
|
| void RecordAppLaunch(Profile* profile, GURL url) {
|
| - if (!profile->GetExtensionService()->IsInstalledApp(url))
|
| + // 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))
|
| return;
|
|
|
| UMA_HISTOGRAM_ENUMERATION(extension_misc::kAppLaunchHistogram,
|
|
|