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

Unified Diff: chrome/browser/content_settings/host_content_settings_map.cc

Issue 9521013: Remove web intents from Chrome on Android build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Exclude 'browser/intents' from Android build as well. Created 8 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/prefs/browser_prefs.cc » ('j') | chrome/browser/ui/browser.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/content_settings/host_content_settings_map.cc
diff --git a/chrome/browser/content_settings/host_content_settings_map.cc b/chrome/browser/content_settings/host_content_settings_map.cc
index 008821826cc7129a32dffd384612ffc4703a3796..0d75579a79ae2a1c7edf2093c02f50d77a1f67bf 100644
--- a/chrome/browser/content_settings/host_content_settings_map.cc
+++ b/chrome/browser/content_settings/host_content_settings_map.cc
@@ -323,9 +323,15 @@ bool HostContentSettingsMap::IsValueAllowedForType(
bool HostContentSettingsMap::IsSettingAllowedForType(
ContentSetting setting, ContentSettingsType content_type) {
// Intents content settings are hidden behind a switch for now.
- if (content_type == CONTENT_SETTINGS_TYPE_INTENTS &&
- !web_intents::IsWebIntentsEnabled())
+ if (content_type == CONTENT_SETTINGS_TYPE_INTENTS) {
+#if !defined(OS_ANDROID)
+ if (!web_intents::IsWebIntentsEnabled()) {
James Hawkins 2012/03/08 05:21:22 nit: No braces here.
Jesse Greenwald 2012/03/08 18:35:28 Done.
+ return false;
+ }
+#else
return false;
+#endif
+ }
// BLOCK semantics are not implemented for fullscreen.
if (content_type == CONTENT_SETTINGS_TYPE_FULLSCREEN &&
« no previous file with comments | « no previous file | chrome/browser/prefs/browser_prefs.cc » ('j') | chrome/browser/ui/browser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698