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

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

Issue 8462003: Exempt chrome-extension:// from third-party cookie rules, but not from regular content settings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/command_line.h" 9 #include "base/command_line.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 rule.primary_pattern, rule.secondary_pattern, 400 rule.primary_pattern, rule.secondary_pattern,
401 content_settings::ValueToContentSetting(rule.value.get()), 401 content_settings::ValueToContentSetting(rule.value.get()),
402 kProviderNames[provider_type], 402 kProviderNames[provider_type],
403 incognito)); 403 incognito));
404 } 404 }
405 } 405 }
406 406
407 bool HostContentSettingsMap::ShouldAllowAllContent( 407 bool HostContentSettingsMap::ShouldAllowAllContent(
408 const GURL& url, 408 const GURL& url,
409 ContentSettingsType content_type) { 409 ContentSettingsType content_type) {
410 if (content_type == CONTENT_SETTINGS_TYPE_NOTIFICATIONS) 410 if (content_type == CONTENT_SETTINGS_TYPE_NOTIFICATIONS ||
411 content_type == CONTENT_SETTINGS_TYPE_COOKIES)
411 return false; 412 return false;
412 return url.SchemeIs(chrome::kChromeDevToolsScheme) || 413 return url.SchemeIs(chrome::kChromeDevToolsScheme) ||
413 url.SchemeIs(chrome::kChromeInternalScheme) || 414 url.SchemeIs(chrome::kChromeInternalScheme) ||
414 url.SchemeIs(chrome::kChromeUIScheme) || 415 url.SchemeIs(chrome::kChromeUIScheme) ||
415 url.SchemeIs(chrome::kExtensionScheme); 416 url.SchemeIs(chrome::kExtensionScheme);
416 } 417 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698