Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(720)

Unified Diff: chrome/browser/tab_contents/tab_contents.cc

Issue 1241006: Add Geolocation to the content types. This adds several special case guards s... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/tab_contents/tab_contents.cc
===================================================================
--- chrome/browser/tab_contents/tab_contents.cc (revision 42594)
+++ chrome/browser/tab_contents/tab_contents.cc (working copy)
@@ -622,6 +622,10 @@
content_type == CONTENT_SETTINGS_TYPE_COOKIES)
return content_blocked_[content_type];
+ // TODO(joth): remove once fully implemented.
+ if (content_type == CONTENT_SETTINGS_TYPE_GEOLOCATION)
+ return false;
+
NOTREACHED();
return false;
}
@@ -2030,6 +2034,8 @@
}
void TabContents::OnContentBlocked(ContentSettingsType type) {
+ // TODO(joth): remove once fully implemented.
+ DCHECK(type != CONTENT_SETTINGS_TYPE_GEOLOCATION);
content_blocked_[type] = true;
if (delegate_)
delegate_->OnBlockedContentChange(this);

Powered by Google App Engine
This is Rietveld 408576698