| Index: chrome/browser/ui/views/bookmark_bar_view.cc
|
| diff --git a/chrome/browser/ui/views/bookmark_bar_view.cc b/chrome/browser/ui/views/bookmark_bar_view.cc
|
| index 5c51f5a8f3172e6da233cfc06b4c6b6e2adb8348..bab8e079992987b006ea905a7546df4e4df5cf70 100644
|
| --- a/chrome/browser/ui/views/bookmark_bar_view.cc
|
| +++ b/chrome/browser/ui/views/bookmark_bar_view.cc
|
| @@ -235,7 +235,10 @@ class OverFlowButton : public views::MenuButton {
|
| };
|
|
|
| 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,
|
|
|