Index: chrome/browser/ui/browser.cc |
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc |
index 66990b19eabdc543c08b2798849d14e905f76b8a..06016f038c040bb9de5eb0b552f9b112cfce15c6 100644 |
--- a/chrome/browser/ui/browser.cc |
+++ b/chrome/browser/ui/browser.cc |
@@ -3927,7 +3927,9 @@ void Browser::Observe(int type, |
case chrome::NOTIFICATION_EXTENSION_UNINSTALLED: |
case chrome::NOTIFICATION_EXTENSION_LOADED: |
- if (window()->GetLocationBar()) |
+ // We can end up here when creating the window, at which point window_ is |
+ // NULL. |
Ben Goodger (Google)
2011/08/30 17:19:49
Add the rest of your CL comment here about SHAppBa
|
+ if (window() && window()->GetLocationBar()) |
window()->GetLocationBar()->UpdatePageActions(); |
break; |