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

Side by Side Diff: chrome/browser/content_settings/host_content_settings_map.cc

Issue 9536023: Revert 124228 - Revert 119423 - Revert 119306 - Turn web intents build flag on. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1025/src/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/common.gypi ('k') | chrome/browser/resources/options/options.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/content_settings/host_content_settings_map.h" 5 #include "chrome/browser/content_settings/host_content_settings_map.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/stl_util.h" 11 #include "base/stl_util.h"
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 const base::Value* value, ContentSettingsType type) { 304 const base::Value* value, ContentSettingsType type) {
305 return IsSettingAllowedForType( 305 return IsSettingAllowedForType(
306 content_settings::ValueToContentSetting(value), type); 306 content_settings::ValueToContentSetting(value), type);
307 } 307 }
308 308
309 // static 309 // static
310 bool HostContentSettingsMap::IsSettingAllowedForType( 310 bool HostContentSettingsMap::IsSettingAllowedForType(
311 ContentSetting setting, ContentSettingsType content_type) { 311 ContentSetting setting, ContentSettingsType content_type) {
312 // Intents content settings are hidden behind a switch for now. 312 // Intents content settings are hidden behind a switch for now.
313 if (content_type == CONTENT_SETTINGS_TYPE_INTENTS && 313 if (content_type == CONTENT_SETTINGS_TYPE_INTENTS &&
314 !CommandLine::ForCurrentProcess()->HasSwitch( 314 CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableWebIntents))
315 switches::kEnableWebIntents))
316 return false; 315 return false;
317 316
318 // BLOCK semantics are not implemented for fullscreen. 317 // BLOCK semantics are not implemented for fullscreen.
319 if (content_type == CONTENT_SETTINGS_TYPE_FULLSCREEN && 318 if (content_type == CONTENT_SETTINGS_TYPE_FULLSCREEN &&
320 setting == CONTENT_SETTING_BLOCK) { 319 setting == CONTENT_SETTING_BLOCK) {
321 return false; 320 return false;
322 } 321 }
323 322
324 // DEFAULT, ALLOW and BLOCK are always allowed. 323 // DEFAULT, ALLOW and BLOCK are always allowed.
325 if (setting == CONTENT_SETTING_DEFAULT || 324 if (setting == CONTENT_SETTING_DEFAULT ||
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 } 452 }
454 } 453 }
455 454
456 if (info) { 455 if (info) {
457 info->source = content_settings::SETTING_SOURCE_NONE; 456 info->source = content_settings::SETTING_SOURCE_NONE;
458 info->primary_pattern = ContentSettingsPattern(); 457 info->primary_pattern = ContentSettingsPattern();
459 info->secondary_pattern = ContentSettingsPattern(); 458 info->secondary_pattern = ContentSettingsPattern();
460 } 459 }
461 return NULL; 460 return NULL;
462 } 461 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | chrome/browser/resources/options/options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698