Index: chrome/browser/geolocation/chrome_geolocation_permission_context.cc |
=================================================================== |
--- chrome/browser/geolocation/chrome_geolocation_permission_context.cc (revision 138369) |
+++ chrome/browser/geolocation/chrome_geolocation_permission_context.cc (working copy) |
@@ -624,8 +624,7 @@ |
WebContents* web_contents = |
tab_util::GetWebContentsByID(render_process_id, render_view_id); |
- if (!web_contents || web_contents->GetViewType() != |
- chrome::VIEW_TYPE_TAB_CONTENTS) { |
+ if (chrome::GetViewType(web_contents) != chrome::VIEW_TYPE_TAB_CONTENTS) { |
// The tab may have gone away, or the request may not be from a tab at all. |
// TODO(mpcomplete): the request could be from a background page or |
// extension popup (tab_contents will have a different ViewType). But why do |