Chromium Code Reviews| Index: chrome/browser/chrome_quota_permission_context.cc |
| diff --git a/chrome/browser/chrome_quota_permission_context.cc b/chrome/browser/chrome_quota_permission_context.cc |
| index 8c7c6d5ad081be538a4934e2c22e7c885d4ee172..47b8b3560e904f7615ba9a23f83aa4d55c8b6754 100644 |
| --- a/chrome/browser/chrome_quota_permission_context.cc |
| +++ b/chrome/browser/chrome_quota_permission_context.cc |
| @@ -138,7 +138,8 @@ void ChromeQuotaPermissionContext::RequestQuotaPermission( |
| } |
| TabContents* tab_contents = TabContents::FromWebContents(web_contents); |
| - InfoBarTabHelper* infobar_helper = tab_contents->infobar_tab_helper(); |
| + InfoBarTabHelper* infobar_helper = |
| + tab_contents ? tab_contents->infobar_tab_helper() : NULL; |
|
kinuko
2012/09/18 05:03:35
nit: indent
tzik
2012/09/19 12:08:54
Thanks. I fixed it and my .emacs.
|
| if (!infobar_helper) { |
| // The tab has no infobar helper. |
| LOG(WARNING) << "Attempt to request quota from a background page: " |